diff options
author | David Baker <dave@matrix.org> | 2020-03-27 12:35:32 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2020-03-27 12:35:32 +0000 |
commit | a07e03ce908f3de4a5ca80d0d7db6da2a6ed98b5 (patch) | |
tree | 78d4629786b0053fdde00bd9ee46fed2612a45e2 /synapse/handlers | |
parent | changelog (diff) | |
download | synapse-a07e03ce908f3de4a5ca80d0d7db6da2a6ed98b5.tar.xz |
black
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/device.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py index 54931c355b..80e7374c6a 100644 --- a/synapse/handlers/device.py +++ b/synapse/handlers/device.py @@ -122,9 +122,7 @@ class DeviceWorkerHandler(BaseHandler): # First we check if any devices have changed for users that we share # rooms with. - tracked_users = yield self.store.get_users_who_share_room_with_user( - user_id - ) + tracked_users = yield self.store.get_users_who_share_room_with_user(user_id) # always tell the user about their own devices tracked_users.add(user_id) @@ -469,7 +467,9 @@ class DeviceHandler(DeviceWorkerHandler): # specify the user ID too since the user should always get their own device list # updates, even if they aren't in any rooms. - yield self.notifier.on_new_event("device_list_key", position, users=[user_id], rooms=room_ids) + yield self.notifier.on_new_event( + "device_list_key", position, users=[user_id], rooms=room_ids + ) if hosts: logger.info( |