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

Commit

Permalink
Merge pull request #5804 from matrix-org/erikj/match_against_state_key
Browse files Browse the repository at this point in the history
Explicitly check that tombstone is a state event before notifying.
  • Loading branch information
erikjohnston authored Aug 1, 2019
2 parents 72167fb + c5288e9 commit ad167c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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

0 comments on commit ad167c3

Please sign in to comment.