matrix-sdk: hide get joined room logic

master
Weihang Lo 2021-03-16 21:55:15 +08:00
parent cbc8b53da1
commit 8c1761faed
No known key found for this signature in database
GPG Key ID: D7DBF189825E82E7
1 changed files with 3 additions and 3 deletions

View File

@ -587,9 +587,9 @@ impl Joined {
/// # let homeserver = url::Url::parse("http://localhost:8080").unwrap();
/// # let mut client = matrix_sdk::Client::new(homeserver).unwrap();
/// # let room_id = matrix_sdk::identifiers::room_id!("!test:localhost");
/// let room = client
/// .get_joined_room(&room_id)
/// .unwrap();
/// # let room = client
/// # .get_joined_room(&room_id)
/// # .unwrap();
/// let event_id = matrix_sdk::identifiers::event_id!("$xxxxxx:example.org");
/// let reason = Some("Indecent material");
/// room.redact(&event_id, reason, None).await.unwrap();