Skip to content

Commit

Permalink
fixup! feat(room): Add fn RoomPrivacySettings::get_room_visibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinesp committed Jan 9, 2025
1 parent 6774747 commit 49c8e00
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions crates/matrix-sdk/src/test_utils/mocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,10 +715,15 @@ impl MatrixMockServer {
/// .mount()
/// .await;
///
/// let visibility = client
/// .get_room_visibility(room_id!("!a:b.c"))
/// let room = mock_server
/// .sync_joined_room(&client, room_id!("!room_id:localhost"))
/// .await;
///
/// let visibility = room
/// .privacy_settings()
/// .get_room_visibility()
/// .await
/// .expect("We should be able to update the room's visibility");
/// .expect("We should be able to get the room's visibility");
/// assert_eq!(visibility, Visibility::Public);
/// # anyhow::Ok(()) });
/// ```
Expand Down

0 comments on commit 49c8e00

Please sign in to comment.