diff options
author | Richard van der Hoff <richard@matrix.org> | 2022-03-04 22:40:51 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2022-03-04 22:40:51 +0000 |
commit | 00a67f831adc7c01fcced6269cb5790816252493 (patch) | |
tree | 61c126514e6a1c8ebe81bd5ac38efe51e622b26a /synapse/events | |
parent | Reduce to-device queries for /sync. (#12163) (diff) | |
parent | Relax version guard for packaging (#12166) (diff) | |
download | synapse-00a67f831adc7c01fcced6269cb5790816252493.tar.xz |
Merge remote-tracking branch 'origin/release-v1.54' into develop
Diffstat (limited to 'synapse/events')
-rw-r--r-- | synapse/events/third_party_rules.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/synapse/events/third_party_rules.py b/synapse/events/third_party_rules.py index dd3104faf3..ede72ee876 100644 --- a/synapse/events/third_party_rules.py +++ b/synapse/events/third_party_rules.py @@ -174,7 +174,9 @@ class ThirdPartyEventRules: ] = None, on_new_event: Optional[ON_NEW_EVENT_CALLBACK] = None, on_profile_update: Optional[ON_PROFILE_UPDATE_CALLBACK] = None, - on_deactivation: Optional[ON_USER_DEACTIVATION_STATUS_CHANGED_CALLBACK] = None, + on_user_deactivation_status_changed: Optional[ + ON_USER_DEACTIVATION_STATUS_CHANGED_CALLBACK + ] = None, ) -> None: """Register callbacks from modules for each hook.""" if check_event_allowed is not None: @@ -199,8 +201,10 @@ class ThirdPartyEventRules: if on_profile_update is not None: self._on_profile_update_callbacks.append(on_profile_update) - if on_deactivation is not None: - self._on_user_deactivation_status_changed_callbacks.append(on_deactivation) + if on_user_deactivation_status_changed is not None: + self._on_user_deactivation_status_changed_callbacks.append( + on_user_deactivation_status_changed, + ) async def check_event_allowed( self, event: EventBase, context: EventContext |