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

Commit e70ead2

Browse files
committed
Also fix upgrade notes
1 parent 319cd89 commit e70ead2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/upgrade.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ has queries that can be used to check a database for this problem in advance.
177177
178178
</details>
179179
180-
## SpamChecker API's `check_event_for_spam` has a new signature.
180+
## New signature for the spam checker callback `check_event_for_spam`
181181
182182
The previous signature has been deprecated.
183183
184-
Whereas `check_event_for_spam` callbacks used to return `Union[str, bool]`, they should now return `Union["synapse.module_api.Allow", "synapse.module_api.errors.Codes"]`.
184+
Whereas `check_event_for_spam` callbacks used to return `Union[str, bool]`, they should now return `Union["synapse.module_api.ALLOW", "synapse.module_api.errors.Codes"]`.
185185
186186
This is part of an ongoing refactoring of the SpamChecker API to make it less ambiguous and more powerful.
187187

0 commit comments

Comments
 (0)