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.
add_initial_events()
1 parent 5bf3b11 commit 1a63d8fCopy full SHA for 1a63d8f
crates/matrix-sdk/src/event_cache/mod.rs
@@ -312,6 +312,11 @@ impl EventCache {
312
events: Vec<SyncTimelineEvent>,
313
prev_batch: Option<String>,
314
) -> Result<()> {
315
+ // If the event cache's storage has been enabled, do nothing.
316
+ if self.inner.store.get().is_some() {
317
+ return Ok(());
318
+ }
319
+
320
let room_cache = self.inner.for_room(room_id).await?;
321
322
// We could have received events during a previous sync; remove them all, since
0 commit comments