mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 02:55:47 -04:00
feat(sdk): EventCache::add_initial_events uses RoomEvents.
This commit is contained in:
@@ -259,12 +259,8 @@ impl EventCache {
|
||||
// We could have received events during a previous sync; remove them all, since
|
||||
// we can't know where to insert the "initial events" with respect to
|
||||
// them.
|
||||
todo!();
|
||||
/*
|
||||
let store = self.inner.store.lock().await;
|
||||
room_cache.inner.events.write().await.reset();
|
||||
|
||||
store.clear_room(room_id).await?;
|
||||
*/
|
||||
let _ = room_cache.inner.sender.send(RoomEventCacheUpdate::Clear);
|
||||
|
||||
room_cache
|
||||
|
||||
Reference in New Issue
Block a user