Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: render signed messages #26

Merged
merged 2 commits into from
Apr 6, 2023
Merged

fix: render signed messages #26

merged 2 commits into from
Apr 6, 2023

Conversation

p-shahi
Copy link
Member

@p-shahi p-shahi commented Apr 6, 2023

Fixes incorrect logic where signed messages were discarded

image

closes #10

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
@p-shahi p-shahi requested review from jochasinga and maschad April 6, 2023 20:59
@vercel
Copy link

vercel bot commented Apr 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
universal-connectivity ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 6, 2023 9:08pm

} else {
setMessages([...messages, { msg, from: 'other', peerId: 'unkonwn' }])
const peerId = evt.detail.toString()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even need to store this peerId if the message is unsigned?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I don't see why we'd need to. I think we can just discard unsigned messages. I'll delete it

Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Left a comment

@p-shahi
Copy link
Member Author

p-shahi commented Apr 6, 2023

This also fixes #10

image

image

Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@p-shahi p-shahi merged commit 5b8d730 into main Apr 6, 2023
@p-shahi p-shahi deleted the fix-messages-not-displaying branch April 6, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Messages are not rendered in the frontend when sent via the go-peer
2 participants