Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_edit: Improve propagate_mode error message.
Prakhar Pratyush9da15267b9b8
diff --git a/zerver/actions/message_edit.py b/zerver/actions/message_edit.pyindex 4887fc2dae9..3e5e11a5c00 100644--- a/zerver/actions/message_edit.py+++ b/zerver/actions/message_edit.py@@ -144,7 +144,7 @@ def validate_message_edit_payload(raise JsonableError(_("Direct messages cannot have topics."))if propagate_mode != "change_one" and topic_name is None and stream_id is None:- raise JsonableError(_("Invalid propagate_mode without topic edit"))+ raise JsonableError(_("Invalid propagate_mode without topic or channel edit"))if topic_name in {RESOLVED_TOPIC_PREFIX.strip(),diff --git a/zerver/tests/test_message_move_topic.py b/zerver/tests/test_message_move_topic.pyindex 32159a0f15c..87b9fffb5ef 100644--- a/zerver/tests/test_message_move_topic.py+++ b/zerver/tests/test_message_move_topic.py@@ -135,7 +135,7 @@ class MessageMoveTopicTest(ZulipTestCase):"propagate_mode": "change_all",},)- self.assert_json_error(result, "Invalid propagate_mode without topic edit")+ self.assert_json_error(result, "Invalid propagate_mode without topic or channel edit")self.check_topic(id1, topic_name="topic1")def test_edit_message_empty_topic_with_extra_space(self) -> None: