mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-12 22:49:27 -05:00
Copy dict in update_membership too
This commit is contained in:
parent
dfbc45302e
commit
ef045dcd71
@ -189,6 +189,10 @@ class RoomMemberHandler(BaseHandler):
|
|||||||
content_specified = bool(content)
|
content_specified = bool(content)
|
||||||
if content is None:
|
if content is None:
|
||||||
content = {}
|
content = {}
|
||||||
|
else:
|
||||||
|
# We do a copy here as we potentially change some keys
|
||||||
|
# later on.
|
||||||
|
content = dict(content)
|
||||||
|
|
||||||
effective_membership_state = action
|
effective_membership_state = action
|
||||||
if action in ["kick", "unban"]:
|
if action in ["kick", "unban"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user