Browse Source

Explicitly check that tombstone is a state event before notifying.

Erik Johnston 4 years ago
parent
commit
2e697d3013
1 changed files with 7 additions and 1 deletions
  1. 7 1
      synapse/push/baserules.py

+ 7 - 1
synapse/push/baserules.py

@@ -245,7 +245,13 @@ BASE_APPEND_OVERRIDE_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}],
     },