diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2023-03-10 10:35:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 10:35:18 +0000 |
commit | e157c63f68ef93c0c25d2df0c63f7da0b30f95ca (patch) | |
tree | 38b0ff3d2c7e19e36b6d31825deab9f446183555 /synapse | |
parent | Fix typo in changelog (diff) | |
download | synapse-e157c63f68ef93c0c25d2df0c63f7da0b30f95ca.tar.xz |
Fix missing conditional for registering `on_remove_user_third_party_identifier` module api callbacks (#15227
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/events/third_party_rules.py | 5 |
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, |