summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-06-27 16:06:23 +0100
committerErik Johnston <erik@matrix.org>2019-06-27 16:06:23 +0100
commit729f5a4fb6654e6c9beb68a3edbb8dbbae076e3f (patch)
tree47dc6eadbe4e811ca4717a8cc5b2c66be07f3e2b /synapse/handlers
parentMove changelog (diff)
downloadsynapse-729f5a4fb6654e6c9beb68a3edbb8dbbae076e3f.tar.xz
Review comments
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/sync.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 4f737d0a12..a3f550554f 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -1089,9 +1089,9 @@ class SyncHandler(object):
             # for anymore.
             #
             # For the first step we check:
-            #   1. if any users we share a room with have updated their devices,
+            #   a. if any users we share a room with have updated their devices,
             #      and
-            #   2. we also check if we've joined any new rooms, or if a user has
+            #   b. we also check if we've joined any new rooms, or if a user has
             #      joined a room we're in.
             #
             # For the second step we just find any users we no longer share a
@@ -1102,12 +1102,12 @@ class SyncHandler(object):
                 user_id
             )
 
-            # Step 1, check for changes in devices of users we share a room with
+            # Step 1a, check for changes in devices of users we share a room with
             users_that_have_changed = yield self.store.get_users_whose_devices_changed(
                 since_token.device_list_key, users_who_share_room
             )
 
-            # Step 2, check for newly joined rooms
+            # Step 1b, check for newly joined rooms
             for room_id in newly_joined_rooms:
                 joined_users = yield self.state.get_current_users_in_room(room_id)
                 newly_joined_or_invited_users.update(joined_users)