Skip to content

Commit

Permalink
chore(ui): Update after the rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed May 26, 2023
1 parent 2c9eb93 commit b669ca5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/matrix-sdk-ui/src/room_list/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ use async_stream::stream;
use async_trait::async_trait;
use eyeball::shared::Observable;
use futures_util::{pin_mut, Stream, StreamExt};
use matrix_sdk::{
Client, Error, Result, SlidingSync, SlidingSyncList, SlidingSyncMode, UpdateSummary,
};
use matrix_sdk::{Client, Error, Result, SlidingSync, SlidingSyncList, SlidingSyncMode};
use once_cell::sync::Lazy;

pub const ALL_ROOMS_LIST_NAME: &str = "all_rooms";
Expand Down Expand Up @@ -113,8 +111,7 @@ impl Action for AddAllRoomsList {
sliding_sync
.add_cached_list(
SlidingSyncList::builder(ALL_ROOMS_LIST_NAME)
.sync_mode(SlidingSyncMode::new_selective())
.add_range(0..=20),
.sync_mode(SlidingSyncMode::new_selective().add_range(0..=20)),
)
.await?;

Expand Down

0 comments on commit b669ca5

Please sign in to comment.