summary refs log tree commit diff
path: root/synapse/module_api/__init__.py
diff options
context:
space:
mode:
authorMathieu Velten <matmaul@gmail.com>2022-07-08 16:46:23 +0200
committerMathieu Velten <mathieuv@matrix.org>2022-08-03 14:52:20 +0200
commit0274a7f2f52dc108d5ae6815fb7dcc2af208dc3c (patch)
treead5e7af83959a2452f7e00ffe333ef6ec0c4badd /synapse/module_api/__init__.py
parentReturn 404 or member list when getting joined_members after leaving (#13374) (diff)
downloadsynapse-0274a7f2f52dc108d5ae6815fb7dcc2af208dc3c.tar.xz
Add 3pid unbind callback to module API
Diffstat (limited to 'synapse/module_api/__init__.py')
-rw-r--r--synapse/module_api/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py

index 18d6d1058a..778608280f 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py
@@ -67,6 +67,7 @@ from synapse.events.third_party_rules import ( ON_NEW_EVENT_CALLBACK, ON_PROFILE_UPDATE_CALLBACK, ON_THREEPID_BIND_CALLBACK, + ON_THREEPID_UNBIND_CALLBACK, ON_USER_DEACTIVATION_STATUS_CHANGED_CALLBACK, ) from synapse.handlers.account_data import ON_ACCOUNT_DATA_UPDATED_CALLBACK @@ -317,6 +318,7 @@ class ModuleApi: ON_USER_DEACTIVATION_STATUS_CHANGED_CALLBACK ] = None, on_threepid_bind: Optional[ON_THREEPID_BIND_CALLBACK] = None, + on_threepid_unbind: Optional[ON_THREEPID_UNBIND_CALLBACK] = None, ) -> None: """Registers callbacks for third party event rules capabilities. @@ -333,6 +335,7 @@ class ModuleApi: on_profile_update=on_profile_update, on_user_deactivation_status_changed=on_user_deactivation_status_changed, on_threepid_bind=on_threepid_bind, + on_threepid_unbind=on_threepid_unbind, ) def register_presence_router_callbacks(