From fe73413262b87b10714e29704ca7345c3caff86a Mon Sep 17 00:00:00 2001 From: anoadragon453 Date: Mon, 14 Oct 2024 10:33:30 +0000 Subject: [PATCH] deploy: 451a9dc7b9284a5d0988318970e15ad41b34491f --- develop/modules/spam_checker_callbacks.html | 9 ++++++--- develop/print.html | 9 ++++++--- develop/searchindex.js | 2 +- develop/searchindex.json | 2 +- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/develop/modules/spam_checker_callbacks.html b/develop/modules/spam_checker_callbacks.html index fc1db0a419..abec60c827 100644 --- a/develop/modules/spam_checker_callbacks.html +++ b/develop/modules/spam_checker_callbacks.html @@ -216,8 +216,9 @@ this callback.

Changed in Synapse v1.62.0: synapse.module_api.NOT_SPAM and synapse.module_api.errors.Codes can be returned by this callback. Returning a boolean is now deprecated.

async def user_may_invite(inviter: str, invitee: str, room_id: str) -> Union["synapse.module_api.NOT_SPAM", "synapse.module_api.errors.Codes", bool]
 
-

Called when processing an invitation. Both inviter and invitee are -represented by their Matrix user ID (e.g. @alice:example.com).

+

Called when processing an invitation, both when one is created locally or when +receiving an invite over federation. Both inviter and invitee are represented by +their Matrix user ID (e.g. @alice:example.com).

The callback must return one of: