forked from MirrorHub/synapse
Merge pull request #5804 from matrix-org/erikj/match_against_state_key
Explicitly check that tombstone is a state event before notifying.
This commit is contained in:
commit
ad167c3849
2 changed files with 8 additions and 1 deletions
1
changelog.d/5804.bugfix
Normal file
1
changelog.d/5804.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix check that tombstone is a state event in push rules.
|
|
@ -245,7 +245,13 @@ BASE_APPEND_OVERRIDE_RULES = [
|
||||||
"key": "type",
|
"key": "type",
|
||||||
"pattern": "m.room.tombstone",
|
"pattern": "m.room.tombstone",
|
||||||
"_id": "_tombstone",
|
"_id": "_tombstone",
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"kind": "event_match",
|
||||||
|
"key": "state_key",
|
||||||
|
"pattern": "",
|
||||||
|
"_id": "_tombstone_statekey",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
"actions": ["notify", {"set_tweak": "highlight", "value": True}],
|
"actions": ["notify", {"set_tweak": "highlight", "value": True}],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue