diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-05-04 07:54:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 11:54:13 +0000 |
commit | ded8f3d349d8481d1c9a48835cde0b94f785e371 (patch) | |
tree | 1a7aec1e9ce0e7c781283133461113936c1e8844 /rust/src/push/mod.rs | |
parent | Bump pyicu from 2.10.2 to 2.11 (#15509) (diff) | |
download | synapse-ded8f3d349d8481d1c9a48835cde0b94f785e371.tar.xz |
Update the base rules to remove the dont_notify action. (MSC3987) (#15534)
A dont_notify action is a no-op (and coalesce is undefined). These are both considered no-ops by the spec, per MSC3987 and the predefined push rules were updated to remove dont_notify from the list of actions.
Diffstat (limited to 'rust/src/push/mod.rs')
-rw-r--r-- | rust/src/push/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rust/src/push/mod.rs b/rust/src/push/mod.rs index 42c7c84132..f19d3c739f 100644 --- a/rust/src/push/mod.rs +++ b/rust/src/push/mod.rs @@ -164,11 +164,13 @@ impl PushRule { /// The "action" Synapse should perform for a matching push rule. #[derive(Debug, Clone, PartialEq, Eq)] pub enum Action { - DontNotify, Notify, - Coalesce, SetTweak(SetTweak), + // Legacy actions that should be understood, but are equivalent to no-ops. + DontNotify, + Coalesce, + // An unrecognized custom action. Unknown(Value), } |