Allow modules to create and send events into rooms (#8479)
This PR allows Synapse modules making use of the `ModuleApi` to create and send non-membership events into a room. This can useful to have modules send messages, or change power levels in a room etc. Note that they must send event through a user that's already in the room. The non-membership event limitation is currently arbitrary, as it's another chunk of work and not necessary at the moment.
Showing
- changelog.d/8479.feature 1 addition, 0 deletionschangelog.d/8479.feature
- synapse/handlers/message.py 5 additions, 6 deletionssynapse/handlers/message.py
- synapse/module_api/__init__.py 29 additions, 1 deletionsynapse/module_api/__init__.py
- tests/module_api/test_api.py 95 additions, 0 deletionstests/module_api/test_api.py
- tests/rest/client/test_third_party_rules.py 27 additions, 1 deletiontests/rest/client/test_third_party_rules.py
Loading
Please register or sign in to comment