Skip to content
Snippets Groups Projects
Commit ef045dcd authored by Erik Johnston's avatar Erik Johnston
Browse files

Copy dict in update_membership too

parent dfbc4530
No related branches found
No related tags found
No related merge requests found
......@@ -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"]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment