message_edit: Ensure gaining_usermessage_user_ids is set.

This makes this code path a bit easier to follow.
This commit is contained in:
Tim Abbott 2023-04-20 17:32:35 -07:00 committed by Alex Vandiver
parent fc679b09a3
commit 68be070306
1 changed files with 1 additions and 0 deletions

View File

@ -614,6 +614,7 @@ def do_update_message(
# If we're not moving the topic to another stream, we don't # If we're not moving the topic to another stream, we don't
# modify the original set of UserMessage objects queried. # modify the original set of UserMessage objects queried.
unmodified_user_messages = ums unmodified_user_messages = ums
gaining_usermessage_user_ids = []
# We save the full topic name so that checks that require comparison # We save the full topic name so that checks that require comparison
# between the original topic and the topic name passed into this function # between the original topic and the topic name passed into this function