Skip to content
Snippets Groups Projects
Unverified Commit ba24576f authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Merge pull request #2717 from matrix-org/erikj/createroom_content

Fix wrong avatars when inviting multiple users when creating room
parents 33cb7ef0 d8a6c734
No related branches found
No related tags found
No related merge requests found
......@@ -205,12 +205,12 @@ class RoomCreationHandler(BaseHandler):
},
ratelimit=False)
content = {}
is_direct = config.get("is_direct", None)
if is_direct:
content["is_direct"] = is_direct
for invitee in invite_list:
content = {}
is_direct = config.get("is_direct", None)
if is_direct:
content["is_direct"] = is_direct
yield room_member_handler.update_membership(
requester,
UserID.from_string(invitee),
......
......@@ -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