mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-09 16:34:32 -04:00
This protects against the sliding sync proxy (or synapse) sending lots of duplicate fully read marker events for the same room in case of reset. This would lead to forwarding lots and lots of `RoomEventCacheUpdate`s to the timeline, cluttering the channel, and resulting in a lag. This lag would then clear the timeline, seemingly cause missing chunks from history. https://github.com/matrix-org/matrix-rust-sdk/pull/3312 is likely the long term fix (after a clear(), the timeline should retrieve all the memoized events from the event cache), but this should prevent the root cause of the spamming in the first place, getting us back to a safe state.