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

Commit 1017f09

Browse files
Update MSC3786 implementation: Check the state_key (#12939)
Signed-off-by: Šimon Brandner <[email protected]>
1 parent 9b683ea commit 1017f09

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

changelog.d/12939.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update [MSC3786](https://github.com/matrix-org/matrix-spec-proposals/pull/3786) implementation to check `state_key`.

synapse/push/baserules.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,13 @@ def make_base_prepend_rules(
290290
"key": "type",
291291
"pattern": "m.room.server_acl",
292292
"_cache_key": "_room_server_acl",
293-
}
293+
},
294+
{
295+
"kind": "event_match",
296+
"key": "state_key",
297+
"pattern": "",
298+
"_cache_key": "_room_server_acl_state_key",
299+
},
294300
],
295301
"actions": [],
296302
},

0 commit comments

Comments
 (0)