summary refs log tree commit diff
path: root/synapse/events/third_party_rules.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2023-03-10 10:35:18 +0000
committerGitHub <noreply@github.com>2023-03-10 10:35:18 +0000
commite157c63f68ef93c0c25d2df0c63f7da0b30f95ca (patch)
tree38b0ff3d2c7e19e36b6d31825deab9f446183555 /synapse/events/third_party_rules.py
parentFix typo in changelog (diff)
downloadsynapse-e157c63f68ef93c0c25d2df0c63f7da0b30f95ca.tar.xz
Fix missing conditional for registering `on_remove_user_third_party_identifier` module api callbacks (#15227
Diffstat (limited to 'synapse/events/third_party_rules.py')
-rw-r--r--synapse/events/third_party_rules.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/events/third_party_rules.py b/synapse/events/third_party_rules.py
index 3e4d52c8d8..61d4530be7 100644
--- a/synapse/events/third_party_rules.py
+++ b/synapse/events/third_party_rules.py
@@ -247,6 +247,11 @@ class ThirdPartyEventRules:
                 on_add_user_third_party_identifier
             )
 
+        if on_remove_user_third_party_identifier is not None:
+            self._on_remove_user_third_party_identifier_callbacks.append(
+                on_remove_user_third_party_identifier
+            )
+
     async def check_event_allowed(
         self,
         event: EventBase,