-
Notifications
You must be signed in to change notification settings - Fork 6
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 invite acceptance over federation #15
Conversation
I don't think the explicit import of |
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.
Just a small personal preference remark, LGTM !
target=target, | ||
room_id=room_id, | ||
new_membership=new_membership, | ||
) |
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.
Are we missing a break
somewhere?
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.
There is a break
on line 191 (still within the while loop) - would it make more sense to move it to line 183?
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.
I misread the code, sorry!
The if condition can be omitted if the break
is moved to line 183, but I don't feel strongly about this.
This PR fixes a race condition which caused accepting invites over federation to fail. It adds a function which runs as a background process which retries the
update_room_membership
call several times if an exception is raised byupdate_room_membership
. Fixes #12.The associated PR in Synapse is matrix-org/synapse#15577.