Ensure we don't call _dispatch_record_profile_updates with an empty list of fields

This commit is contained in:
Jason Robinson
2026-06-26 16:57:33 +03:00
parent f453e03c8c
commit b2246de4e3
+4 -3
View File
@@ -556,9 +556,10 @@ class ProfileHandler:
await self.store.delete_profile(target_user)
# Record profile updates for the profile update stream
await self._dispatch_record_profile_updates(
target_user, {field_name for field_name, _value in profile_updates}
)
if len(profile_updates):
await self._dispatch_record_profile_updates(
target_user, {field_name for field_name, _value in profile_updates}
)
await self._third_party_rules.on_profile_update(
target_user.to_string(),