feat(room_list): make RoomListService updates subscriptions non-destructively#6652
feat(room_list): make RoomListService updates subscriptions non-destructively#6652Johennes wants to merge 6 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6652 +/- ##
==========================================
+ Coverage 89.94% 89.99% +0.04%
==========================================
Files 382 382
Lines 108012 108112 +100
Branches 108012 108112 +100
==========================================
+ Hits 97152 97295 +143
+ Misses 7188 7154 -34
+ Partials 3672 3663 -9 ☔ View full report in Codecov by Harness. |
| /// Replace all subscriptions to rooms by other ones. | ||
| /// | ||
| /// If the associated `Room`s exist, they will be marked as members are | ||
| /// missing, so that it ensures to re-fetch all members. | ||
| pub fn clear_and_subscribe_to_rooms( | ||
| &self, | ||
| room_ids: &[&RoomId], | ||
| settings: Option<http::request::RoomSubscription>, | ||
| cancel_in_flight_request: bool, | ||
| ) { |
There was a problem hiding this comment.
What I had in mind was to change the current methods or add methods on RoomListService instead of changing what we have on the SlidingSync API.
Thoughts?
There was a problem hiding this comment.
I think doing it exclusively on the RoomListService level is tricky because the subscriptions are only known and locked in SlidingSync. I added a new method there now which I think is cleaner than my previous attempt of modifying the existing method.
09183ba to
8c866a4
Compare
8c866a4 to
81d3130
Compare
…uctively Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
81d3130 to
7e789cc
Compare
…n-destructively Remove leftover print Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
…n-destructively Extend doc comment Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
…n-destructively Switch to retain Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
…n-destructively Highlight that members won't be resynced Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
…n-destructively Reformat Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
With my Filament hat on.
Fixes: #6620
(see Writing changelog entries).