mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Update the end_token correctly, otherwise the token doesn't advance and the client gets duplicate events
This commit is contained in:
parent
5e4ba463b7
commit
2551b6645d
@ -311,7 +311,7 @@ class Notifier(object):
|
|||||||
user, getattr(from_token, keyname), limit,
|
user, getattr(from_token, keyname), limit,
|
||||||
)
|
)
|
||||||
events.extend(stuff)
|
events.extend(stuff)
|
||||||
end_token = from_token.copy_and_replace(keyname, new_key)
|
end_token = end_token.copy_and_replace(keyname, new_key)
|
||||||
|
|
||||||
if events:
|
if events:
|
||||||
defer.returnValue((events, (from_token, end_token)))
|
defer.returnValue((events, (from_token, end_token)))
|
||||||
|
Loading…
Reference in New Issue
Block a user