diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-10-29 16:15:48 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-10-29 16:16:01 +0000 |
commit | b1ee6fd7ed16bb06ba684fa4ef2be3b6dd2da642 (patch) | |
tree | 9cb0904e325de9203d26218d33da969dbef46928 /synapse/handlers/presence.py | |
parent | Construct a source-specific 'SourcePaginationConfig' to pass into get_paginat... (diff) | |
download | synapse-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/handlers/presence.py')
-rw-r--r-- | synapse/handlers/presence.py | 2 |
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)): |