onboarding_steps: Rename 'copy_hotspots' function.

The function is used for any type of onboarding step
i.e. not limited to Hotspot.

This commit updates the function and variables name
to reflect the above mentioned behaviour.
This commit is contained in:
Prakhar Pratyush
2024-05-10 16:44:45 +05:30
committed by Tim Abbott
parent 18579755a8
commit e8769f80a6
2 changed files with 8 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ import orjson
from django.contrib.auth.models import UserManager
from django.utils.timezone import now as timezone_now
from zerver.lib.hotspots import copy_hotspots
from zerver.lib.hotspots import copy_onboarding_steps
from zerver.lib.i18n import get_default_language_for_new_user
from zerver.lib.timezone import canonicalize_timezone
from zerver.lib.upload import copy_avatar
@@ -64,7 +64,7 @@ def copy_default_settings(
)
copy_avatar(settings_source, target_profile)
copy_hotspots(settings_source, target_profile)
copy_onboarding_steps(settings_source, target_profile)
def get_display_email_address(user_profile: UserProfile) -> str: