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 :-).
This commit is contained in:
Ivan Enderlin
2023-09-18 10:06:37 +02:00
parent af402b3864
commit 17e1e81023
@@ -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)