From 910022bca64d63c3d56afb2ead757dc6c9763466 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 16 May 2023 13:45:55 +0200 Subject: [PATCH] sdk: Make useful push related methods public --- crates/matrix-sdk/src/account.rs | 2 +- crates/matrix-sdk/src/room/common.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/matrix-sdk/src/account.rs b/crates/matrix-sdk/src/account.rs index e2f79b656..fea4932b6 100644 --- a/crates/matrix-sdk/src/account.rs +++ b/crates/matrix-sdk/src/account.rs @@ -833,7 +833,7 @@ impl Account { /// with the server-default push rules is returned. /// /// Panics if called when the client is not logged in. - pub(crate) async fn push_rules(&self) -> Result { + pub async fn push_rules(&self) -> Result { Ok(self .account_data::() .await? diff --git a/crates/matrix-sdk/src/room/common.rs b/crates/matrix-sdk/src/room/common.rs index 870713164..9d418901a 100644 --- a/crates/matrix-sdk/src/room/common.rs +++ b/crates/matrix-sdk/src/room/common.rs @@ -1020,7 +1020,7 @@ impl Common { /// /// Returns `None` if some data couldn't be found. This should only happen /// in brand new rooms, while we process its state. - pub(crate) async fn push_context(&self) -> Result> { + pub async fn push_context(&self) -> Result> { let room_id = self.room_id(); let user_id = self.own_user_id(); let room_info = self.clone_info();