diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2022-03-31 18:27:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 18:27:21 +0200 |
commit | 5e88143dff7aa6f8682bd6182e946b3470d1728e (patch) | |
tree | 17c65e0c0f490b2fbb9bac3459f0c51eda876c8e /synapse/module_api | |
parent | README-testing.md: fix minor error (diff) | |
download | synapse-5e88143dff7aa6f8682bd6182e946b3470d1728e.tar.xz |
Add a callback to react to 3PID associations (#12302)
Diffstat (limited to 'synapse/module_api')
-rw-r--r-- | synapse/module_api/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py index ba9755f08b..3c7dcca74d 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py @@ -62,6 +62,7 @@ from synapse.events.third_party_rules import ( ON_CREATE_ROOM_CALLBACK, ON_NEW_EVENT_CALLBACK, ON_PROFILE_UPDATE_CALLBACK, + ON_THREEPID_BIND_CALLBACK, ON_USER_DEACTIVATION_STATUS_CHANGED_CALLBACK, ) from synapse.handlers.account_validity import ( @@ -293,6 +294,7 @@ class ModuleApi: on_user_deactivation_status_changed: Optional[ ON_USER_DEACTIVATION_STATUS_CHANGED_CALLBACK ] = None, + on_threepid_bind: Optional[ON_THREEPID_BIND_CALLBACK] = None, ) -> None: """Registers callbacks for third party event rules capabilities. @@ -308,6 +310,7 @@ class ModuleApi: check_can_deactivate_user=check_can_deactivate_user, on_profile_update=on_profile_update, on_user_deactivation_status_changed=on_user_deactivation_status_changed, + on_threepid_bind=on_threepid_bind, ) def register_presence_router_callbacks( |