diff options
author | Erik Johnston <erikj@jki.re> | 2017-12-07 20:00:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-07 20:00:34 +0000 |
commit | ba24576f2fcf228ad29574ea5a833095d8c32582 (patch) | |
tree | 4ba6a510997e38e829c6a6b0aa53caace4e7b872 /synapse/handlers/room.py | |
parent | Merge pull request #2723 from matrix-org/matthew/search-all-local-users (diff) | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/createroom... (diff) | |
download | synapse-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.py')
-rw-r--r-- | synapse/handlers/room.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 496f1fc39b..d1cc87a016 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -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), |