@@ -10,6 +10,8 @@ The available spam checker callbacks are:
10
10
11
11
### ` check_event_for_spam `
12
12
13
+ _ First introduced in Synapse v1.37.0_
14
+
13
15
``` python
14
16
async def check_event_for_spam (event : " synapse.events.EventBase" ) -> Union[bool , str ]
15
17
```
@@ -46,6 +48,8 @@ any of the subsequent implementations of this callback.
46
48
47
49
# ## `user_may_invite`
48
50
51
+ _First introduced in Synapse v1.37.0_
52
+
49
53
```python
50
54
async def user_may_invite(inviter: str , invitee: str , room_id: str ) -> bool
51
55
```
@@ -101,6 +105,8 @@ any of the subsequent implementations of this callback.
101
105
102
106
# ## `user_may_create_room`
103
107
108
+ _First introduced in Synapse v1.37.0_
109
+
104
110
```python
105
111
async def user_may_create_room(user: str ) -> bool
106
112
```
@@ -149,6 +155,8 @@ any of the subsequent implementations of this callback.
149
155
150
156
# ## `user_may_create_room_alias`
151
157
158
+ _First introduced in Synapse v1.37.0_
159
+
152
160
```python
153
161
async def user_may_create_room_alias(user: str , room_alias: " synapse.types.RoomAlias" ) -> bool
154
162
```
@@ -164,6 +172,8 @@ any of the subsequent implementations of this callback.
164
172
165
173
# ## `user_may_publish_room`
166
174
175
+ _First introduced in Synapse v1.37.0_
176
+
167
177
```python
168
178
async def user_may_publish_room(user: str , room_id: str ) -> bool
169
179
```
@@ -179,6 +189,8 @@ any of the subsequent implementations of this callback.
179
189
180
190
# ## `check_username_for_spam`
181
191
192
+ _First introduced in Synapse v1.37.0_
193
+
182
194
```python
183
195
async def check_username_for_spam(user_profile: Dict[str , str ]) -> bool
184
196
```
@@ -201,6 +213,8 @@ any of the subsequent implementations of this callback.
201
213
202
214
# ## `check_registration_for_spam`
203
215
216
+ _First introduced in Synapse v1.37.0_
217
+
204
218
```python
205
219
async def check_registration_for_spam(
206
220
email_threepid: Optional[dict ],
@@ -232,6 +246,8 @@ this callback.
232
246
233
247
# ## `check_media_file_for_spam`
234
248
249
+ _First introduced in Synapse v1.37.0_
250
+
235
251
```python
236
252
async def check_media_file_for_spam(
237
253
file_wrapper: " synapse.rest.media.v1.media_storage.ReadableFileWrapper" ,
0 commit comments