SchildiChat-android/matrix-sdk-android
SpiritCroc bda09aa03f 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
2022-04-29 15:29:03 +02:00
..
src Do not delete events from the last forward chunk 2022-04-29 15:29:03 +02:00
.gitignore first commit 2018-10-03 17:58:12 +02:00
build.gradle Version hotfix 1.4.13 2022-04-26 11:29:40 +02:00
proguard-rules.pro Remove dependency to org.greenrobot.eventbus library 2021-01-05 18:56:24 +01:00