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

Commit

Permalink
Uniformize spam-checker API, part 2: check_event_for_spam
Browse files Browse the repository at this point in the history
Signed-off-by: David Teller <davidt@element.io>
  • Loading branch information
Yoric committed May 24, 2022
1 parent 6855024 commit 6506492
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/12808.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update to `check_event_for_spam`. Deprecate the current callback signature, replace it with a new signature that is both less ambiguous (replacing booleans with explicit allow/block) and more powerful (ability to return explicit error codes).
1 change: 0 additions & 1 deletion synapse/events/spamcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

logger = logging.getLogger(__name__)


CHECK_EVENT_FOR_SPAM_CALLBACK = Callable[
["synapse.events.EventBase"],
Awaitable[
Expand Down

0 comments on commit 6506492

Please sign in to comment.