From 17e1e81023442fa2ae0c652d8828f34c8d87efec Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 18 Sep 2023 10:06:37 +0200 Subject: [PATCH] fix(ui): The `invites` sliding sync is no longer cached. `RoomListService::new_internal` were creating the `invites` sliding sync list, with a cache. It is not a good idea. It should not be cached. Let's remove that :-). --- crates/matrix-sdk-ui/src/room_list_service/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/matrix-sdk-ui/src/room_list_service/mod.rs b/crates/matrix-sdk-ui/src/room_list_service/mod.rs index 4fbfb5f7a..724c37e0a 100644 --- a/crates/matrix-sdk-ui/src/room_list_service/mod.rs +++ b/crates/matrix-sdk-ui/src/room_list_service/mod.rs @@ -194,7 +194,7 @@ impl RoomListService { )) .await .map_err(Error::SlidingSync)? - .add_cached_list( + .add_list( SlidingSyncList::builder(INVITES_LIST_NAME) .sync_mode( SlidingSyncMode::new_selective().add_range(INVITES_DEFAULT_SELECTIVE_RANGE), @@ -213,8 +213,6 @@ impl RoomListService { }))), ) - .await - .map_err(Error::SlidingSync)? .build() .await .map(Arc::new)