actions: Rename notify_topic_moved_streams function.

This is a minor refactor which renames the
notify_topic_moved_streams function to
send_message_moved_breadcrumbs.

This is done because this function will be also used
for other things in the future, when moving streams
or when using the /digress command, for example.
This commit is contained in:
Abhijeet Prasad Bodas 2021-01-10 19:22:24 +05:30 committed by Tim Abbott
parent 06d9497a40
commit fc0488fdb1
1 changed files with 2 additions and 2 deletions

View File

@ -5097,7 +5097,7 @@ class MessageUpdateUserInfoResult(TypedDict):
mention_user_ids: Set[int]
def notify_topic_moved_streams(
def send_message_moved_breadcrumbs(
user_profile: UserProfile,
old_stream: Stream,
old_topic: str,
@ -5598,7 +5598,7 @@ def do_update_message(
if len(changed_messages) > 0 and new_stream is not None and stream_being_edited is not None:
# Notify users that the topic was moved.
notify_topic_moved_streams(
send_message_moved_breadcrumbs(
user_profile,
stream_being_edited,
orig_topic_name,