mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-12 10:00:50 -04:00
sdk: Make useful push related methods public
This commit is contained in:
committed by
Jonas Platte
parent
a6fe0bb34d
commit
910022bca6
@@ -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?
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user