-
- Downloads
"git@mau.dev:leytilera/synapse.git" did not exist on "a52e1a3b6c5a255f4a51d48dec739751238fa1f9"
Allow ThirdPartyEventRules modules to manipulate public room state (#8292)
This PR allows `ThirdPartyEventRules` modules to view, manipulate and block changes to the state of whether a room is published in the public rooms directory. While the idea of whether a room is in the public rooms list is not kept within an event in the room, `ThirdPartyEventRules` generally deal with controlling which modifications can happen to a room. Public rooms fits within that idea, even if its toggle state isn't controlled through a state event.
Showing
- UPGRADE.rst 17 additions, 0 deletionsUPGRADE.rst
- changelog.d/8292.feature 1 addition, 0 deletionschangelog.d/8292.feature
- synapse/events/third_party_rules.py 45 additions, 6 deletionssynapse/events/third_party_rules.py
- synapse/handlers/directory.py 10 additions, 0 deletionssynapse/handlers/directory.py
- synapse/handlers/room.py 9 additions, 0 deletionssynapse/handlers/room.py
- synapse/module_api/__init__.py 67 additions, 0 deletionssynapse/module_api/__init__.py
- tests/module_api/test_api.py 55 additions, 1 deletiontests/module_api/test_api.py
- tests/rest/client/third_party_rules.py 19 additions, 12 deletionstests/rest/client/third_party_rules.py
Loading
Please register or sign in to comment