From c3c3c6d2005b70ef49526f9a4b99c39feebf3775 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Wed, 8 Mar 2023 18:00:58 +0000 Subject: Move callback-related code from the SpamChecker to its own class And update the many references. --- synapse/module_api/callbacks/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'synapse/module_api/callbacks/__init__.py') diff --git a/synapse/module_api/callbacks/__init__.py b/synapse/module_api/callbacks/__init__.py index 884c6413cc..d4c47a7c62 100644 --- a/synapse/module_api/callbacks/__init__.py +++ b/synapse/module_api/callbacks/__init__.py @@ -13,6 +13,7 @@ # limitations under the License. from .account_validity_callbacks import AccountValidityModuleApiCallbacks +from .spam_checker_callbacks import SpamCheckerModuleApiCallbacks __all__ = [ "ModuleApiCallbacks", @@ -22,3 +23,4 @@ __all__ = [ class ModuleApiCallbacks: def __init__(self) -> None: self.account_validity = AccountValidityModuleApiCallbacks() + self.spam_checker = SpamCheckerModuleApiCallbacks() -- cgit 1.5.1