cargo fmt
parent
dc5fb7e33a
commit
808a7deae3
|
@ -1343,7 +1343,7 @@ pub fn create_room_route(
|
||||||
{
|
{
|
||||||
// Silently skip encryption events if they are not allowed
|
// Silently skip encryption events if they are not allowed
|
||||||
if event_type == &EventType::RoomEncryption && db.globals.encryption_disabled() {
|
if event_type == &EventType::RoomEncryption && db.globals.encryption_disabled() {
|
||||||
continue
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
db.rooms.append_pdu(
|
db.rooms.append_pdu(
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
use js_int::uint;
|
use js_int::uint;
|
||||||
use ruma::{
|
use ruma::{
|
||||||
UserId,
|
|
||||||
push::{
|
push::{
|
||||||
Action, ConditionalPushRule, ConditionalPushRuleInit, PatternedPushRule,
|
Action, ConditionalPushRule, ConditionalPushRuleInit, PatternedPushRule,
|
||||||
PatternedPushRuleInit, PushCondition, RoomMemberCountIs, Ruleset, Tweak,
|
PatternedPushRuleInit, PushCondition, RoomMemberCountIs, Ruleset, Tweak,
|
||||||
},
|
},
|
||||||
|
UserId,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn default_pushrules(user_id: &UserId) -> Ruleset {
|
pub fn default_pushrules(user_id: &UserId) -> Ruleset {
|
||||||
|
|
Loading…
Reference in New Issue