From 61f48bac6611beed80dedc36b2d68bdebbb31eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Tue, 29 Oct 2024 12:38:47 +0100 Subject: [PATCH] refactor(room): remove `sdk::Room::room_power_levels` function This has been replaced by `sdk_base::Room::power_levels`, which can also be used from `sdk::Room` --- crates/matrix-sdk/src/room/mod.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/crates/matrix-sdk/src/room/mod.rs b/crates/matrix-sdk/src/room/mod.rs index d6a4624ecff..420aaf8eb5d 100644 --- a/crates/matrix-sdk/src/room/mod.rs +++ b/crates/matrix-sdk/src/room/mod.rs @@ -2163,16 +2163,6 @@ impl Room { Ok(()) } - /// Get the current power levels of this room. - pub async fn room_power_levels(&self) -> Result { - Ok(self - .get_state_event_static::() - .await? - .ok_or(Error::InsufficientData)? - .deserialize()? - .power_levels()) - } - /// Resets the room's power levels to the default values /// /// [spec]: https://spec.matrix.org/v1.9/client-server-api/#mroompower_levels