Fix missing conditional for registering on_remove_user_third_party_identifier module api callbacks (#15227

This commit is contained in:
Andrew Morgan 2023-03-10 10:35:18 +00:00 committed by GitHub
parent 9418344db4
commit e157c63f68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 9 deletions

View file

@ -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,