summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-28 17:23:53 +0100
committerErik Johnston <erik@matrix.org>2015-04-28 17:23:53 +0100
commit0126ef7f3c1304bd920260db369628d39b4badd3 (patch)
treeea41321dedf1f5e7477fcb00d8380acf80658742
parentEnsure the serial returned by presence is always an integer (diff)
downloadsynapse-0126ef7f3c1304bd920260db369628d39b4badd3.tar.xz
Fix typo
-rw-r--r--synapse/handlers/presence.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index 774df46aba..47cfe62c82 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -881,7 +881,7 @@ class PresenceEventSource(object):
             if serial < from_key:
                 break
 
-            latest_serial = max(cached.serial, serial)
+            latest_serial = max(latest_serial, serial)
             for u in user_ids:
                 updates.append({
                     "type": "m.presence",