summary refs log tree commit diff
path: root/develop/modules/third_party_rules_callbacks.html
diff options
context:
space:
mode:
authorbabolivier <babolivier@users.noreply.github.com>2021-10-20 11:04:56 +0000
committerbabolivier <babolivier@users.noreply.github.com>2021-10-20 11:04:56 +0000
commit36bedb6c6afeb652ac75b72db634dde05af2797f (patch)
tree105f1bb4d1a0cd06ebee7784f2ccd220d883274b /develop/modules/third_party_rules_callbacks.html
parentdeploy: 5e0e6835416776e4d938f53b3c9a005970f88127 (diff)
downloadsynapse-36bedb6c6afeb652ac75b72db634dde05af2797f.tar.xz
deploy: 78d5896d19692e4b6cdbf09f807915e6b0929ce5
Diffstat (limited to 'develop/modules/third_party_rules_callbacks.html')
-rw-r--r--develop/modules/third_party_rules_callbacks.html4
1 files changed, 4 insertions, 0 deletions
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 <code>register_third_party_rules_callbacks</code> method.</p> <h2 id="callbacks"><a class="header" href="#callbacks">Callbacks</a></h2> <p>The available third party rules callbacks are:</p> <h3 id="check_event_allowed"><a class="header" href="#check_event_allowed"><code>check_event_allowed</code></a></h3> +<p><em>First introduced in Synapse v1.39.0</em></p> <pre><code class="language-python">async def check_event_allowed( event: &quot;synapse.events.EventBase&quot;, state_events: &quot;synapse.types.StateMap&quot;, @@ -221,6 +222,7 @@ callback returns <code>True</code>, Synapse falls through to the next one. The v callback that does not return <code>True</code> will be used. If this happens, Synapse will not call any of the subsequent implementations of this callback.</p> <h3 id="on_create_room"><a class="header" href="#on_create_room"><code>on_create_room</code></a></h3> +<p><em>First introduced in Synapse v1.39.0</em></p> <pre><code class="language-python">async def on_create_room( requester: &quot;synapse.types.Requester&quot;, 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.</p> <h3 id="check_threepid_can_be_invited"><a class="header" href="#check_threepid_can_be_invited"><code>check_threepid_can_be_invited</code></a></h3> +<p><em>First introduced in Synapse v1.39.0</em></p> <pre><code class="language-python">async def check_threepid_can_be_invited( medium: str, address: str, @@ -253,6 +256,7 @@ callback returns <code>True</code>, Synapse falls through to the next one. The v callback that does not return <code>True</code> will be used. If this happens, Synapse will not call any of the subsequent implementations of this callback.</p> <h3 id="check_visibility_can_be_modified"><a class="header" href="#check_visibility_can_be_modified"><code>check_visibility_can_be_modified</code></a></h3> +<p><em>First introduced in Synapse v1.39.0</em></p> <pre><code class="language-python">async def check_visibility_can_be_modified( room_id: str, state_events: &quot;synapse.types.StateMap&quot;,