mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 15:13:31 +00:00
Fix off by one in presence token handling
This commit is contained in:
1 parent
12d381bd5d
commit
a6e62cf6d0
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user