Skip to content
Snippets Groups Projects
Unverified Commit 08c5181a authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Fix `can only concatenate list (not "tuple") to list` exception (#7810)

It seems auth_events can be either a list or a tuple, depending on Things.
parent 8fa7fdd4
Branches
Tags
No related merge requests found
Fix 'stuck invites' which happen when we are unable to reject a room invite received over federation.
......@@ -1072,7 +1072,7 @@ class RoomMemberMasterHandler(RoomMemberHandler):
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment