mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-28 13:44:24 +00:00
Update the end_token correctly, otherwise the token doesn't advance and the client gets duplicate events
This commit is contained in:
+1
-1
@@ -311,7 +311,7 @@ class Notifier(object):
|
||||
user, getattr(from_token, keyname), limit,
|
||||
)
|
||||
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:
|
||||
defer.returnValue((events, (from_token, end_token)))
|
||||
|
||||
Reference in New Issue
Block a user