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

Ignore messages from own origin #2363

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

frederikrothenberger
Copy link
Contributor

@frederikrothenberger frederikrothenberger commented Mar 13, 2024

Currently, II prints a warning to the console (or in case of the VC-flow even shows a toast) when it receives an unexpected message. Messages might get sent from browser extension (i.e. the MetaMask extension does that), which can be recognized by having the same origin as II itself. Since II does not send messages to itself, we can safely ignore all of these messages (and the messages do not warrant an error).


🟡 Some screens were changed

Currently, II prints a warning to the console (or in case of the VC-flow
even shows a toast) when it receives an unexpected message.
Messages might get sent from browser extension (i.e. the MetaMask
extension does that), which can be recognized by having the same origin
as II itself. Since II does not send messages to itself, we can safely
ignore all of these messages (and the messages do not warrant an `error`).
Copy link
Collaborator

@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

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

LGTM!

@lmuntaner lmuntaner changed the title Ignore messages form own origin Ignore messages from own origin Mar 13, 2024
@frederikrothenberger frederikrothenberger added this pull request to the merge queue Mar 14, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Mar 14, 2024
@frederikrothenberger frederikrothenberger added this pull request to the merge queue Mar 14, 2024
Merged via the queue into main with commit 6c34591 Mar 14, 2024
63 checks passed
@frederikrothenberger frederikrothenberger deleted the frederik/ignore-message-own-origin branch March 14, 2024 09:51
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.

2 participants