-
Notifications
You must be signed in to change notification settings - Fork 7
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.