You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Called when processing a request to [send state events](https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3roomsroomidstateeventtypestatekey) to a room.
258
+
259
+
The arguments passed to this callback are:
260
+
261
+
*`user_id`: The Matrix user ID of the user (e.g. `@alice:example.com`) sending the state event.
262
+
*`room_id`: The ID of the room that the requested state event is being sent to.
263
+
*`event_type`: The requested type of event.
264
+
*`state_key`: The requested state key.
265
+
*`content`: The requested event contents.
266
+
267
+
The callback must return one of:
268
+
-`synapse.module_api.NOT_SPAM`, to allow the operation. Other callbacks may still
269
+
decide to reject it.
270
+
-`synapse.module_api.errors.Codes` to reject the operation with an error code. In case
271
+
of doubt, `synapse.module_api.errors.Codes.FORBIDDEN`is a good error code.
272
+
273
+
If multiple modules implement this callback, they will be considered in order. If a
274
+
callback returns `synapse.module_api.NOT_SPAM`, Synapse falls through to the next one.
275
+
The value of the first callback that does notreturn`synapse.module_api.NOT_SPAM` will
276
+
be used. If this happens, Synapse will not call any of the subsequent implementations of
0 commit comments