From 36bedb6c6afeb652ac75b72db634dde05af2797f Mon Sep 17 00:00:00 2001 From: babolivier Date: Wed, 20 Oct 2021 11:04:56 +0000 Subject: deploy: 78d5896d19692e4b6cdbf09f807915e6b0929ce5 --- develop/modules/third_party_rules_callbacks.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'develop/modules/third_party_rules_callbacks.html') diff --git a/develop/modules/third_party_rules_callbacks.html b/develop/modules/third_party_rules_callbacks.html index adf9d398f6..7d9f8f0aac 100644 --- a/develop/modules/third_party_rules_callbacks.html +++ b/develop/modules/third_party_rules_callbacks.html @@ -189,6 +189,7 @@ the module API's register_third_party_rules_callbacks method.

Callbacks

The available third party rules callbacks are:

check_event_allowed

+

First introduced in Synapse v1.39.0

async def check_event_allowed(
     event: "synapse.events.EventBase",
     state_events: "synapse.types.StateMap",
@@ -221,6 +222,7 @@ callback returns True, Synapse falls through to the next one. The v
 callback that does not return True will be used. If this happens, Synapse will not call
 any of the subsequent implementations of this callback.

on_create_room

+

First introduced in Synapse v1.39.0

async def on_create_room(
     requester: "synapse.types.Requester",
     request_content: dict,
@@ -240,6 +242,7 @@ room creation will be forbidden as soon as one of the callbacks raises an except
 this happens, Synapse will not call any of the subsequent implementations of this
 callback.

check_threepid_can_be_invited

+

First introduced in Synapse v1.39.0

async def check_threepid_can_be_invited(
     medium: str,
     address: str,
@@ -253,6 +256,7 @@ callback returns True, Synapse falls through to the next one. The v
 callback that does not return True will be used. If this happens, Synapse will not call
 any of the subsequent implementations of this callback.

check_visibility_can_be_modified

+

First introduced in Synapse v1.39.0

async def check_visibility_can_be_modified(
     room_id: str,
     state_events: "synapse.types.StateMap",
-- 
cgit 1.5.1