mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 21:45:46 +00:00
Switch the RTC notification rules to event-property-is (#20366)
As suggested in https://github.com/matrix-org/matrix-spec-proposals/pull/4075#discussion_r4288130493.
This commit is contained in:
1 parent
87b082f23a
commit
c54fd437e3
2 files changed
+9
-4
No files matched your search
@@ -0,0 +1 @@
|
||||
Switch the MatrixRTC notification push rules to `event_property_is`.
|
||||
@@ -149,9 +149,11 @@ pub const BASE_APPEND_OVERRIDE_RULES: &[PushRule] = &[
|
||||
rule_id: Cow::Borrowed("global/override/.org.matrix.msc4075.rule.rtc.invite_for_me"),
|
||||
priority_class: 5,
|
||||
conditions: Cow::Borrowed(&[
|
||||
Condition::Known(KnownCondition::EventMatch(EventMatchCondition {
|
||||
Condition::Known(KnownCondition::EventPropertyIs(EventPropertyIsCondition {
|
||||
key: Cow::Borrowed("type"),
|
||||
pattern: Cow::Borrowed("org.matrix.msc4075.rtc.notification"),
|
||||
value: Cow::Owned(SimpleJsonValue::Str(Cow::Borrowed(
|
||||
"org.matrix.msc4075.rtc.notification",
|
||||
))),
|
||||
})),
|
||||
Condition::Known(KnownCondition::ExactEventPropertyContainsType(
|
||||
EventPropertyIsTypeCondition {
|
||||
@@ -168,9 +170,11 @@ pub const BASE_APPEND_OVERRIDE_RULES: &[PushRule] = &[
|
||||
rule_id: Cow::Borrowed("global/override/.org.matrix.msc4075.rule.rtc.invite_for_room"),
|
||||
priority_class: 5,
|
||||
conditions: Cow::Borrowed(&[
|
||||
Condition::Known(KnownCondition::EventMatch(EventMatchCondition {
|
||||
Condition::Known(KnownCondition::EventPropertyIs(EventPropertyIsCondition {
|
||||
key: Cow::Borrowed("type"),
|
||||
pattern: Cow::Borrowed("org.matrix.msc4075.rtc.notification"),
|
||||
value: Cow::Owned(SimpleJsonValue::Str(Cow::Borrowed(
|
||||
"org.matrix.msc4075.rtc.notification",
|
||||
))),
|
||||
})),
|
||||
Condition::Known(KnownCondition::EventPropertyIs(EventPropertyIsCondition {
|
||||
key: Cow::Borrowed(r"content.m\.mentions.room"),
|
||||
|
||||
Reference in new issue
Block a user