diff --git a/develop/modules/spam_checker_callbacks.html b/develop/modules/spam_checker_callbacks.html index 4fc874ccc3..2c92183385 100644 --- a/develop/modules/spam_checker_callbacks.html +++ b/develop/modules/spam_checker_callbacks.html @@ -295,9 +295,15 @@ this callback.

user_may_create_room

First introduced in Synapse v1.37.0

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_create_room(user_id: str) -> Union["synapse.module_api.NOT_SPAM", "synapse.module_api.errors.Codes", bool]
+

Changed in Synapse v1.132.0: Added the room_config argument. Callbacks that only expect a single user_id argument are still supported.

+
async def user_may_create_room(user_id: str, room_config: synapse.module_api.JsonDict) -> Union["synapse.module_api.NOT_SPAM", "synapse.module_api.errors.Codes", bool]
 

Called when processing a room creation request.

+

The arguments passed to this callback are:

+

The callback must return one of: