Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Explicitly check that tombstone is a state event before notifying. #5804

Merged
merged 2 commits into from
Aug 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/5804.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix check that tombstone is a state event in push rules.
8 changes: 7 additions & 1 deletion synapse/push/baserules.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,13 @@ def make_base_prepend_rules(kind, modified_base_rules):
"key": "type",
"pattern": "m.room.tombstone",
"_id": "_tombstone",
}
},
{
"kind": "event_match",
"key": "state_key",
"pattern": "",
"_id": "_tombstone_statekey",
},
],
"actions": ["notify", {"set_tweak": "highlight", "value": True}],
},
Expand Down