Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix can only concatenate list (not "tuple") to list exception (#7810)
Browse files Browse the repository at this point in the history
It seems auth_events can be either a list or a tuple, depending on Things.
  • Loading branch information
richvdh authored Jul 9, 2020
1 parent 8fa7fdd commit 08c5181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/7810.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix 'stuck invites' which happen when we are unable to reject a room invite received over federation.
2 changes: 1 addition & 1 deletion synapse/handlers/room_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ async def _locally_reject_invite(
alg, h = compute_event_reference_hash(invite_event)
invite_hash = (invite_event.event_id, {alg: encode_base64(h)})

auth_events = invite_event.auth_events + (invite_hash,)
auth_events = tuple(invite_event.auth_events) + (invite_hash,)
prev_events = (invite_hash,)

# we cap depth of generated events, to ensure that they are not
Expand Down

0 comments on commit 08c5181

Please sign in to comment.