mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-17 23:42:33 +01:00
Remove unnecessary null check
This commit is contained in:
parent
6f3fda79ce
commit
516456b763
1 changed files with 6 additions and 7 deletions
|
@ -287,13 +287,12 @@ class RoomMemberHandler(object):
|
|||
user_id, old_room_id,
|
||||
)
|
||||
|
||||
if room_tags:
|
||||
# Copy each room tag to the new room
|
||||
for tag in room_tags.keys():
|
||||
tag_content = room_tags[tag]
|
||||
yield self.store.add_tag_to_room(
|
||||
user_id, room_id, tag, tag_content
|
||||
)
|
||||
# Copy each room tag to the new room
|
||||
for tag in room_tags.keys():
|
||||
tag_content = room_tags[tag]
|
||||
yield self.store.add_tag_to_room(
|
||||
user_id, room_id, tag, tag_content
|
||||
)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def update_membership(
|
||||
|
|
Loading…
Reference in a new issue