summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-03-05 13:12:08 +0000
committerErik Johnston <erik@matrix.org>2018-03-07 11:55:31 +0000
commit02a1296ad634ff8200abe539d27a53a6f850081d (patch)
tree83793cf6a7d7425df3dc2ae3752e21be3fe4bd7a /synapse
parentFix race in sync when joining room (diff)
downloadsynapse-02a1296ad634ff8200abe539d27a53a6f850081d.tar.xz
Fix typo
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/sync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 163d80417e..b323e0e6b0 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -1390,8 +1390,8 @@ class SyncHandler(object):
         # If the membership's stream ordering is after the given stream
         # ordering, we need to go and work out if the user was in the room
         # before.
-        for room_id, membeship_stream_ordering in joined_rooms:
-            if membeship_stream_ordering <= stream_ordering:
+        for room_id, membership_stream_ordering in joined_rooms:
+            if membership_stream_ordering <= stream_ordering:
                 joined_room_ids.add(room_id)
                 continue