summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorDavid Baker <dbkr@users.noreply.github.com>2020-03-30 14:34:28 +0100
committerGitHub <noreply@github.com>2020-03-30 14:34:28 +0100
commit07569f25d10daeffe25e4f9763175d70b69aec1c (patch)
treebd0f403060da03ac5f3ece68b1b0157f58a5fc6d /synapse/handlers/sync.py
parentMerge pull request #7157 from matrix-org/rev.outbound_device_pokes_tests (diff)
parentAdd explanatory comment (diff)
downloadsynapse-07569f25d10daeffe25e4f9763175d70b69aec1c.tar.xz
Merge pull request #7160 from matrix-org/dbkr/always_send_own_device_list_updates
Always send the user updates to their own device list
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r--synapse/handlers/sync.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 5746fdea14..1f1cde2feb 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -1143,9 +1143,14 @@ class SyncHandler(object):
                 user_id
             )
 
+            tracked_users = set(users_who_share_room)
+
+            # Always tell the user about their own devices
+            tracked_users.add(user_id)
+
             # Step 1a, check for changes in devices of users we share a room with
             users_that_have_changed = await self.store.get_users_whose_devices_changed(
-                since_token.device_list_key, users_who_share_room
+                since_token.device_list_key, tracked_users
             )
 
             # Step 1b, check for newly joined rooms