mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-06 01:47:56 -05:00
Remove unnecessary null check
This commit is contained in:
parent
6f3fda79ce
commit
516456b763
@ -287,13 +287,12 @@ class RoomMemberHandler(object):
|
|||||||
user_id, old_room_id,
|
user_id, old_room_id,
|
||||||
)
|
)
|
||||||
|
|
||||||
if room_tags:
|
# Copy each room tag to the new room
|
||||||
# Copy each room tag to the new room
|
for tag in room_tags.keys():
|
||||||
for tag in room_tags.keys():
|
tag_content = room_tags[tag]
|
||||||
tag_content = room_tags[tag]
|
yield self.store.add_tag_to_room(
|
||||||
yield self.store.add_tag_to_room(
|
user_id, room_id, tag, tag_content
|
||||||
user_id, room_id, tag, tag_content
|
)
|
||||||
)
|
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def update_membership(
|
def update_membership(
|
||||||
|
Loading…
Reference in New Issue
Block a user