mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-30 03:38:31 +00:00
Ruma upgrade
This commit is contained in:
parent
17ad5f0595
commit
2808dd2000
45 changed files with 528 additions and 474 deletions
|
@ -23,7 +23,10 @@ use ruma::{
|
|||
OutgoingRequest,
|
||||
},
|
||||
device_id,
|
||||
events::{push_rules::PushRulesEvent, AnySyncEphemeralRoomEvent, EventType},
|
||||
events::{
|
||||
push_rules::PushRulesEvent, AnySyncEphemeralRoomEvent, EventType,
|
||||
GlobalAccountDataEventType,
|
||||
},
|
||||
push,
|
||||
receipt::ReceiptType,
|
||||
uint, MilliSecondsSinceUnixEpoch, ServerName, UInt, UserId,
|
||||
|
@ -635,7 +638,11 @@ impl Sending {
|
|||
|
||||
let rules_for_user = db
|
||||
.account_data
|
||||
.get(None, &userid, EventType::PushRules)
|
||||
.get(
|
||||
None,
|
||||
&userid,
|
||||
GlobalAccountDataEventType::PushRules.to_string().into(),
|
||||
)
|
||||
.unwrap_or_default()
|
||||
.map(|ev: PushRulesEvent| ev.content.global)
|
||||
.unwrap_or_else(|| push::Ruleset::server_default(&userid));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue