We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ab4584 commit 22a15f1Copy full SHA for 22a15f1
crates/matrix-sdk/src/event_cache/room/mod.rs
@@ -1354,10 +1354,6 @@ mod private {
1354
// Add the previous back-pagination token (if present), followed by the timeline
1355
// events themselves.
1356
self.with_events_mut(true, |room_events| {
1357
- // If we only received duplicated events, we don't need to store the gap: if
1358
- // there was a gap, we'd have received an unknown event at the tail of
1359
- // the room's timeline (unless the server reordered sync events since the
1360
- // last time we sync'd).
1361
if let Some(prev_token) = &prev_batch {
1362
// As a tiny optimization: remove the last chunk if it's an empty event
1363
// one, as it's not useful to keep it before a gap.
0 commit comments