Skip to content

Commit

Permalink
fix(ui): Add m.room.member: $LAZY in the require states of `visible…
Browse files Browse the repository at this point in the history
…_rooms`

fix(ui): Add `m.room.member: $LAZY` in the require states of `visible_rooms`
  • Loading branch information
Hywan authored Aug 10, 2023
2 parents ac42d07 + 752e814 commit 361bc18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/matrix-sdk-ui/src/room_list_service/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ impl Action for AddVisibleRoomsList {
SlidingSyncMode::new_selective().add_range(VISIBLE_ROOMS_DEFAULT_RANGE),
)
.timeline_limit(20)
.required_state(vec![(StateEventType::RoomEncryption, "".to_owned())]),
.required_state(vec![
(StateEventType::RoomEncryption, "".to_owned()),
(StateEventType::RoomMember, "$LAZY".to_owned()),
]),
))
.await
.map_err(Error::SlidingSync)?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ async fn test_sync_all_states() -> Result<(), Error> {
"ranges": [[0, 19]],
"required_state": [
["m.room.encryption", ""],
["m.room.member", "$LAZY"],
],
"filters": {
"is_invite": false,
Expand Down

0 comments on commit 361bc18

Please sign in to comment.