sdk: Make useful push related methods public

This commit is contained in:
Jonas Platte
2023-05-16 13:45:55 +02:00
committed by Jonas Platte
parent a6fe0bb34d
commit 910022bca6
2 changed files with 2 additions and 2 deletions

View File

@@ -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<Ruleset> {
pub async fn push_rules(&self) -> Result<Ruleset> {
Ok(self
.account_data::<PushRulesEventContent>()
.await?

View File

@@ -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<Option<PushConditionRoomCtx>> {
pub async fn push_context(&self) -> Result<Option<PushConditionRoomCtx>> {
let room_id = self.room_id();
let user_id = self.own_user_id();
let room_info = self.clone_info();