diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-01-25 11:26:06 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-01-25 11:26:06 +0000 |
commit | 8265995498e375cefd728b77930ea3e65306c69a (patch) | |
tree | f2854a886be0f6df5d9c7b4049462f69d4e217b5 | |
parent | Destructure account data tuple before use (diff) | |
download | synapse-8265995498e375cefd728b77930ea3e65306c69a.tar.xz |
Use python magic
-rw-r--r-- | synapse/handlers/room_member.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index bde4798d0c..ee12428fe7 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -288,8 +288,7 @@ class RoomMemberHandler(object): ) # Copy each room tag to the new room - for tag in room_tags.keys(): - tag_content = room_tags[tag] + for tag, tag_content in room_tags.items(): yield self.store.add_tag_to_room( user_id, room_id, tag, tag_content ) |