summary refs log tree commit diff
path: root/synapse/module_api/__init__.py
diff options
context:
space:
mode:
authorMathieu Velten <mathieuv@matrix.org>2022-12-12 23:31:09 +0100
committerMathieu Velten <mathieuv@matrix.org>2022-12-12 23:31:09 +0100
commit6073c0ecb1253299058d834d864a6fb9cb862278 (patch)
tree671221b0ff5aa368bce54f9235e98a727f3ab921 /synapse/module_api/__init__.py
parentMerge remote-tracking branch 'origin/develop' into mv/unbind-callback (diff)
downloadsynapse-6073c0ecb1253299058d834d864a6fb9cb862278.tar.xz
Adress comments
Diffstat (limited to 'synapse/module_api/__init__.py')
-rw-r--r--synapse/module_api/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py

index 6da9e1d8b2..dc34afcbff 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py
@@ -67,7 +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, + UNBIND_THREEPID_CALLBACK, ON_USER_DEACTIVATION_STATUS_CHANGED_CALLBACK, ) from synapse.handlers.account_data import ON_ACCOUNT_DATA_UPDATED_CALLBACK @@ -320,7 +320,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, + unbind_threepid: Optional[UNBIND_THREEPID_CALLBACK] = None, ) -> None: """Registers callbacks for third party event rules capabilities. @@ -337,7 +337,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, + unbind_threepid=unbind_threepid, ) def register_presence_router_callbacks(