-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not delete events from the last forward chunk
We get end up with missing messages by the combination of - deleting the last forward chunk when receiving a new one - not adding events to a chunk that are already found in another chunk Accordingly, when using chunk tokens to load more messages, those messages that were not added to a chunk due to a /sync chunk will get lost. More thorough steps to reproduce: - Receive e.g. 30 new messages while offline - Use /sync in the room overview, this will fetch the latest 10 events - Open a chat in the past before the latest unread messages - Scroll down a little, in order to fill the message gap and load all unread messages - Close the chat - Receive another e.g. 60 messages while offline - Re-open the chat at some time in the past, before the latest 70 messages => messages from the old /sync chunk will be missing Change-Id: Ia3f2d2715a3edfd0b3fe5c3d48a02ade4ea49c4d
- Loading branch information
1 parent
cbc29d0
commit ef57e60
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters