summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-29 17:37:11 +0100
committerErik Johnston <erik@matrix.org>2015-04-29 17:37:11 +0100
commita6e62cf6d0cb7d80c7b1fe99e279b27c2faf7855 (patch)
treedb7d28b9b56c8d027eab73b9702b3ad494753ff3 /synapse
parentDecode the data json in the storage layer (was moved but this part was missed) (diff)
downloadsynapse-a6e62cf6d0cb7d80c7b1fe99e279b27c2faf7855.tar.xz
Fix off by one in presence token handling
Diffstat (limited to '')
-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 42cd528908..9e15610401 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -881,7 +881,7 @@ class PresenceEventSource(object):
         # TODO(paul): limit
 
         for serial, user_ids in presence._remote_offline_serials:
-            if serial < from_key:
+            if serial <= from_key:
                 break
 
             if serial > max_serial: