From 68be070306cefbf358b6a4377dfa65ce9288d717 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. --- 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 9b6f310300..3d2f5cea16 100644 --- a/zerver/actions/message_edit.py +++ b/zerver/actions/message_edit.py @@ -614,6 +614,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