summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-30 14:00:11 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-30 14:00:11 +0100
commit104844c1e1a99df9c4a7e022e715517578533db7 (patch)
tree7b8df19eca326501ef86e1da947fa0596a2da83a /synapse/handlers
parentblack (diff)
downloadsynapse-104844c1e1a99df9c4a7e022e715517578533db7.tar.xz
Add explanatory comment
Diffstat (limited to '')
-rw-r--r--synapse/handlers/device.py3
-rw-r--r--synapse/handlers/sync.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py
index d256b86ce5..993499f446 100644
--- a/synapse/handlers/device.py
+++ b/synapse/handlers/device.py
@@ -127,7 +127,8 @@ class DeviceWorkerHandler(BaseHandler):
         )
 
         tracked_users = set(users_who_share_room)
-        # always tell the user about their own devices
+
+        # Always tell the user about their own devices
         tracked_users.add(user_id)
 
         changed = yield self.store.get_users_whose_devices_changed(
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 725f41c4d9..1f1cde2feb 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -1144,6 +1144,8 @@ class SyncHandler(object):
             )
 
             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