summary refs log tree commit diff
path: root/synapse/push/baserules.py
diff options
context:
space:
mode:
authorŠimon Brandner <simon.bra.ag@gmail.com>2022-06-27 21:28:34 +0200
committerGitHub <noreply@github.com>2022-06-27 20:28:34 +0100
commit1017f09c18b2ae6e350df1e7755ae480fd180853 (patch)
tree1659b1bfba4ef31cab1cede96156f30695bcc734 /synapse/push/baserules.py
parentAdd Cross-Origin-Resource-Policy header to thumbnail and download media endpo... (diff)
downloadsynapse-1017f09c18b2ae6e350df1e7755ae480fd180853.tar.xz
Update MSC3786 implementation: Check the `state_key` (#12939)
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Diffstat (limited to 'synapse/push/baserules.py')
-rw-r--r--synapse/push/baserules.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/synapse/push/baserules.py b/synapse/push/baserules.py
index 819bc9e9b6..6c0cc5a6ce 100644
--- a/synapse/push/baserules.py
+++ b/synapse/push/baserules.py
@@ -290,7 +290,13 @@ BASE_APPEND_OVERRIDE_RULES: List[Dict[str, Any]] = [
                 "key": "type",
                 "pattern": "m.room.server_acl",
                 "_cache_key": "_room_server_acl",
-            }
+            },
+            {
+                "kind": "event_match",
+                "key": "state_key",
+                "pattern": "",
+                "_cache_key": "_room_server_acl_state_key",
+            },
         ],
         "actions": [],
     },