Skip to content

Commit ead4061

Browse files
committed
test(ui): Update room_list_service integration tests.
This patch updates the `room_list_service` integration test suite based on the previous commit that changes `RoomListEntry` by `Room`.
1 parent 52f9ae1 commit ead4061

File tree

4 files changed

+96
-315
lines changed

4 files changed

+96
-315
lines changed

crates/matrix-sdk-ui/src/room_list_service/filters/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ use super::Room;
9696

9797
/// A trait “alias” that represents a _filter_.
9898
///
99-
/// A filter is simply a function that receives a `&RoomListEntry` and returns a
100-
/// `bool`.
99+
/// A filter is simply a function that receives a `&Room` and returns a `bool`.
101100
pub trait Filter: Fn(&Room) -> bool {}
102101

103102
impl<F> Filter for F where F: Fn(&Room) -> bool {}

crates/matrix-sdk-ui/src/room_list_service/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ use std::{
7676
use async_stream::stream;
7777
use eyeball::{SharedObservable, Subscriber};
7878
use futures_util::{pin_mut, Stream, StreamExt};
79-
pub use matrix_sdk::RoomListEntry;
8079
use matrix_sdk::{
8180
event_cache::EventCacheError, sliding_sync::Ranges, Client, Error as SlidingSyncError,
8281
SlidingSync, SlidingSyncList, SlidingSyncListBuilder, SlidingSyncMode,

crates/matrix-sdk-ui/src/room_list_service/room_list.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,10 @@ pub enum RoomListLoadingState {
300300
/// The maximum number of rooms a [`RoomList`] contains.
301301
///
302302
/// It does not mean that there are exactly this many rooms to display.
303-
/// Usually, the room entries are represented by
304-
/// [`RoomListEntry`]. The room entry might have been synced or not
305-
/// synced yet, but we know for sure (from the server), that there will
306-
/// be this amount of rooms in the list at the end.
303+
/// Usually, the room entries are represented by [`Room`]. The room
304+
/// entry might have been synced or not synced yet, but we know for sure
305+
/// (from the server), that there will be this amount of rooms in the
306+
/// list at the end.
307307
///
308308
/// Note that it's an `Option`, because it may be possible that the
309309
/// server did miss to send us this value. It's up to you, dear reader,

0 commit comments

Comments
 (0)