diff options
author | Erik Johnston <erik@matrix.org> | 2016-09-09 17:22:07 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-09-09 17:22:07 +0100 |
commit | 44330a21e91746999995f7491d5a5e502e8e5908 (patch) | |
tree | 62b6617c13a0ea1e9f5440fb14fb80a7d2644c2e /synapse | |
parent | Correctly handle typing stream id resetting (diff) | |
download | synapse-44330a21e91746999995f7491d5a5e502e8e5908.tar.xz |
Comment
Diffstat (limited to '')
-rw-r--r-- | synapse/app/synchrotron.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/app/synchrotron.py b/synapse/app/synchrotron.py index 07d3d047c6..dbaa48035d 100644 --- a/synapse/app/synchrotron.py +++ b/synapse/app/synchrotron.py @@ -242,6 +242,9 @@ class SynchrotronTyping(object): self._room_typing = {} def stream_positions(self): + # We must update this typing token from the response of the previous + # sync. In particular, the stream id may "reset" back to zero/a low + # value which we *must* use for the next replication request. return {"typing": self._latest_room_serial} def process_replication(self, result): |