aboutsummaryrefslogtreecommitdiff
path: root/userapi
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2022-12-23 12:52:47 +0100
committerGitHub <noreply@github.com>2022-12-23 12:52:47 +0100
commitf47515e38b0bbf734bf977daedd836bf85465272 (patch)
tree802f59169ac7d768476f8bfbe89a0971841dbe30 /userapi
parent5eed31fea330f5f0500384c98272b9a75a44fba4 (diff)
Pushrule tweaks, make `pattern` non-optional on `EventMatchCondition` (#2918)
This should fix https://github.com/matrix-org/dendrite/issues/2882 (Tested with FluffyChat 1.7.1) Also adds tests that the predefined push rules (as per the spec) is what we have in Dendrite.
Diffstat (limited to 'userapi')
-rw-r--r--userapi/consumers/roomserver_test.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/userapi/consumers/roomserver_test.go b/userapi/consumers/roomserver_test.go
index 265e3a3a..39f4aab4 100644
--- a/userapi/consumers/roomserver_test.go
+++ b/userapi/consumers/roomserver_test.go
@@ -81,11 +81,6 @@ func Test_evaluatePushRules(t *testing.T) {
wantAction: pushrules.NotifyAction,
wantActions: []*pushrules.Action{
{Kind: pushrules.NotifyAction},
- {
- Kind: pushrules.SetTweakAction,
- Tweak: pushrules.HighlightTweak,
- Value: false,
- },
},
},
{
@@ -103,7 +98,6 @@ func Test_evaluatePushRules(t *testing.T) {
{
Kind: pushrules.SetTweakAction,
Tweak: pushrules.HighlightTweak,
- Value: true,
},
},
},