message_edit: Ensure gaining_usermessage_user_ids is set.

This makes this code path a bit easier to follow.

(cherry picked from commit 68be070306)
This commit is contained in:
Tim Abbott 2023-04-20 17:32:35 -07:00
parent e928fce232
commit eeedc34e58
1 changed files with 1 additions and 0 deletions

View File

@ -595,6 +595,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