-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(sdk): Remove
RoomListEntry
and ops
in Sliding Sync.
This patch removes everything related to the computation of `ops` from a sliding sync response. With the recent `RoomList`'s client-side sorting project, we no longer need to handle these `ops`. Moreover, the simplified sliding sync specification that is coming removes the `ops`. A `SlidingSyncList` was containing a `rooms` field. It's removed by this patch. Consequently, all the `SlidingSyncList::room_list` and `::room_list_stream` methods are also removed. A `FrozenSlidingSyncList` was containing the `FrozenSlidingSyncRoom`. This patch moves the `FrozenSlidingSyncRoom`s inside `FrozenSlidingSync`. Why is it still correct? We only want to keep the `SlidingSyncRoom::timeline_queue` in the cache for the moment (until the `EventCache` has a persistent storage). Since a `SlidingSyncList` no longer holds any information about the rooms, and since `SlidingSync` itself has all the `SlidingSyncRoom`, this move is natural and still valid. Bye bye all this code :'-).
- Loading branch information
Showing
10 changed files
with
167 additions
and
1,506 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.