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 9319f4f commit fa5bbadCopy full SHA for fa5bbad
crates/matrix-sdk/src/event_cache/mod.rs
@@ -573,7 +573,9 @@ impl RoomEventCacheInner {
573
// Make sure there's at most one back-pagination request.
574
let _guard = self.pagination_lock.lock().await;
575
576
- // Make sure the `RoomEvents` isn't updated while we are back-paginating.
+ // Make sure the `RoomEvents` isn't updated while we are back-paginating. This
577
+ // is really important, for example if a sync is happening while we are
578
+ // back-paginating.
579
let mut room_events = self.events.write().await;
580
581
// Check that the `token` exists if any.
0 commit comments