Skip to content

Commit 22a15f1

Browse files
committed
refactor(event cache): remove code comment that doesn't make sense anymore
1 parent 3ab4584 commit 22a15f1

File tree

1 file changed

+0
-4
lines changed
  • crates/matrix-sdk/src/event_cache/room

1 file changed

+0
-4
lines changed

crates/matrix-sdk/src/event_cache/room/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,10 +1354,6 @@ mod private {
13541354
// Add the previous back-pagination token (if present), followed by the timeline
13551355
// events themselves.
13561356
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).
13611357
if let Some(prev_token) = &prev_batch {
13621358
// As a tiny optimization: remove the last chunk if it's an empty event
13631359
// one, as it's not useful to keep it before a gap.

0 commit comments

Comments
 (0)