Copy dict in update_membership too

pull/4/merge
Erik Johnston 7 years ago
parent dfbc45302e
commit ef045dcd71
  1. 4
      synapse/handlers/room_member.py

@ -189,6 +189,10 @@ class RoomMemberHandler(BaseHandler):
content_specified = bool(content)
if content is None:
content = {}
else:
# We do a copy here as we potentially change some keys
# later on.
content = dict(content)
effective_membership_state = action
if action in ["kick", "unban"]:

Loading…
Cancel
Save