From eeedc34e581243d8bef5e38f0d01856d94edef5a Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 20 Apr 2023 17:32:35 -0700 Subject: [PATCH] message_edit: Ensure gaining_usermessage_user_ids is set. This makes this code path a bit easier to follow. (cherry picked from commit 68be070306cefbf358b6a4377dfa65ce9288d717) --- zerver/actions/message_edit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zerver/actions/message_edit.py b/zerver/actions/message_edit.py index f2506b729e..c7e4634022 100644 --- a/zerver/actions/message_edit.py +++ b/zerver/actions/message_edit.py @@ -595,6 +595,7 @@ def do_update_message( # If we're not moving the topic to another stream, we don't # modify the original set of UserMessage objects queried. unmodified_user_messages = ums + gaining_usermessage_user_ids = [] # We save the full topic name so that checks that require comparison # between the original topic and the topic name passed into this function