matrix-sdk: hide get joined room logic
parent
cbc8b53da1
commit
8c1761faed
|
@ -587,9 +587,9 @@ impl Joined {
|
||||||
/// # let homeserver = url::Url::parse("http://localhost:8080").unwrap();
|
/// # let homeserver = url::Url::parse("http://localhost:8080").unwrap();
|
||||||
/// # let mut client = matrix_sdk::Client::new(homeserver).unwrap();
|
/// # let mut client = matrix_sdk::Client::new(homeserver).unwrap();
|
||||||
/// # let room_id = matrix_sdk::identifiers::room_id!("!test:localhost");
|
/// # let room_id = matrix_sdk::identifiers::room_id!("!test:localhost");
|
||||||
/// let room = client
|
/// # let room = client
|
||||||
/// .get_joined_room(&room_id)
|
/// # .get_joined_room(&room_id)
|
||||||
/// .unwrap();
|
/// # .unwrap();
|
||||||
/// let event_id = matrix_sdk::identifiers::event_id!("$xxxxxx:example.org");
|
/// let event_id = matrix_sdk::identifiers::event_id!("$xxxxxx:example.org");
|
||||||
/// let reason = Some("Indecent material");
|
/// let reason = Some("Indecent material");
|
||||||
/// room.redact(&event_id, reason, None).await.unwrap();
|
/// room.redact(&event_id, reason, None).await.unwrap();
|
||||||
|
|
Loading…
Reference in New Issue