summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-10-29 16:15:48 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-10-29 16:16:01 +0000
commitb1ee6fd7ed16bb06ba684fa4ef2be3b6dd2da642 (patch)
tree9cb0904e325de9203d26218d33da969dbef46928 /synapse
parentConstruct a source-specific 'SourcePaginationConfig' to pass into get_paginat... (diff)
downloadsynapse-b1ee6fd7ed16bb06ba684fa4ef2be3b6dd2da642.tar.xz
Fix an off-by-one bug in presence event stream pagination; this might be responsible for any number of bug reports
Diffstat (limited to 'synapse')
-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 13b5b4da93..4bbcb52b28 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -838,7 +838,7 @@ class PresenceEventSource(object):
         updates = []
         # TODO(paul): use a DeferredList ? How to limit concurrency.
         for observed_user in cachemap.keys():
-            if not (to_key < cachemap[observed_user].serial < from_key):
+            if not (to_key < cachemap[observed_user].serial <= from_key):
                 continue
 
             if (yield self.is_visible(observer_user, observed_user)):