mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Fix an off-by-one bug in presence event stream pagination; this might be responsible for any number of bug reports
This commit is contained in:
parent
d6bcffa929
commit
b1ee6fd7ed
2 changed files with 17 additions and 1 deletions
|
@ -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)):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue