summary refs log tree commit diff
path: root/synapse/handlers/room_member.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-12-07 20:00:34 +0000
committerGitHub <noreply@github.com>2017-12-07 20:00:34 +0000
commitba24576f2fcf228ad29574ea5a833095d8c32582 (patch)
tree4ba6a510997e38e829c6a6b0aa53caace4e7b872 /synapse/handlers/room_member.py
parentMerge pull request #2723 from matrix-org/matthew/search-all-local-users (diff)
parentMerge branch 'develop' of github.com:matrix-org/synapse into erikj/createroom... (diff)
downloadsynapse-ba24576f2fcf228ad29574ea5a833095d8c32582.tar.xz
Merge pull request #2717 from matrix-org/erikj/createroom_content
Fix wrong avatars when inviting multiple users when creating room
Diffstat (limited to 'synapse/handlers/room_member.py')
-rw-r--r--synapse/handlers/room_member.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index 970fec0666..7e6467cd1d 100644
--- a/synapse/handlers/room_member.py
+++ b/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"]: