Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 7c1836a

Browse files
committed
Mention callbacks introduced in v1.37.0
According to the documentation introduced in #10062
1 parent 0dd0c40 commit 7c1836a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/modules/spam_checker_callbacks.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ The available spam checker callbacks are:
1010

1111
### `check_event_for_spam`
1212

13+
_First introduced in Synapse v1.37.0_
14+
1315
```python
1416
async def check_event_for_spam(event: "synapse.events.EventBase") -> Union[bool, str]
1517
```
@@ -46,6 +48,8 @@ any of the subsequent implementations of this callback.
4648

4749
### `user_may_invite`
4850

51+
_First introduced in Synapse v1.37.0_
52+
4953
```python
5054
async def user_may_invite(inviter: str, invitee: str, room_id: str) -> bool
5155
```
@@ -101,6 +105,8 @@ any of the subsequent implementations of this callback.
101105

102106
### `user_may_create_room`
103107

108+
_First introduced in Synapse v1.37.0_
109+
104110
```python
105111
async def user_may_create_room(user: str) -> bool
106112
```
@@ -149,6 +155,8 @@ any of the subsequent implementations of this callback.
149155

150156
### `user_may_create_room_alias`
151157

158+
_First introduced in Synapse v1.37.0_
159+
152160
```python
153161
async def user_may_create_room_alias(user: str, room_alias: "synapse.types.RoomAlias") -> bool
154162
```
@@ -164,6 +172,8 @@ any of the subsequent implementations of this callback.
164172

165173
### `user_may_publish_room`
166174

175+
_First introduced in Synapse v1.37.0_
176+
167177
```python
168178
async def user_may_publish_room(user: str, room_id: str) -> bool
169179
```
@@ -179,6 +189,8 @@ any of the subsequent implementations of this callback.
179189

180190
### `check_username_for_spam`
181191

192+
_First introduced in Synapse v1.37.0_
193+
182194
```python
183195
async def check_username_for_spam(user_profile: Dict[str, str]) -> bool
184196
```
@@ -201,6 +213,8 @@ any of the subsequent implementations of this callback.
201213

202214
### `check_registration_for_spam`
203215

216+
_First introduced in Synapse v1.37.0_
217+
204218
```python
205219
async def check_registration_for_spam(
206220
email_threepid: Optional[dict],
@@ -232,6 +246,8 @@ this callback.
232246

233247
### `check_media_file_for_spam`
234248

249+
_First introduced in Synapse v1.37.0_
250+
235251
```python
236252
async def check_media_file_for_spam(
237253
file_wrapper: "synapse.rest.media.v1.media_storage.ReadableFileWrapper",

0 commit comments

Comments
 (0)