-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add sanity checks to prevent users from ignoring themselves #30079
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The room name is constructed from a global variable that is incremented in beforeEach. If you add a new test, you're running beforeEach
one more time than before and thus you get a different room name which causes the snapshot checks to fail.
Should be fixed but definitely not in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a sane sanity check, but surely if we're rendering this state we could just stash the inviter earlier in the process to not lose it, how is this error presented to the user? Doesn't look translatable.
…hq#30079) * Fix missing state * Throw error if membership event changes * Write test * Fix broken tests * Cache inviter when room is loaded * Translate error message for dialog
For #29969
onDeclineButtonClicked
should setrejecting
state to true so that the UI reflects an ongoing decline.