create_user: Remove redundant argument of get_display_email_address.

This commit is contained in:
Mateusz Mandera
2020-12-19 17:51:38 +01:00
committed by Tim Abbott
parent c693ae8982
commit b15dd9147d
3 changed files with 5 additions and 5 deletions

View File

@@ -695,7 +695,7 @@ def do_set_realm_property(realm: Realm, name: str, value: Any,
user_profiles = UserProfile.objects.filter(realm=realm, is_bot=False)
for user_profile in user_profiles:
user_profile.email = get_display_email_address(user_profile, realm)
user_profile.email = get_display_email_address(user_profile)
# TODO: Design a bulk event for this or force-reload all clients
send_user_email_update_event(user_profile)
UserProfile.objects.bulk_update(user_profiles, ['email'])