Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_edit: Modify the error message for topic edit deadline.
sahil839e2835d3f4f98
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.pyindex d2fe26d1c36..f308ae9af0c 100644--- a/zerver/lib/actions.py+++ b/zerver/lib/actions.py@@ -2805,7 +2805,7 @@ def check_update_message():deadline_seconds = Realm.DEFAULT_COMMUNITY_TOPIC_EDITING_LIMIT_SECONDS + edit_limit_bufferif (timezone_now() - message.date_sent) > datetime.timedelta(seconds=deadline_seconds):- raise JsonableError(_("The time limit for editing this message has passed"))+ raise JsonableError(_("The time limit for editing this message's topic has passed"))rendered_content = Nonelinks_for_embed: Set[str] = set()diff --git a/zerver/tests/test_message_edit.py b/zerver/tests/test_message_edit.pyindex 78ecc227597..ac65146a773 100644--- a/zerver/tests/test_message_edit.py+++ b/zerver/tests/test_message_edit.py@@ -879,7 +879,7 @@ class EditMessageTest(EditMessageTestCase):set_message_editing_params(True, 0, True)do_edit_message_assert_success(id_, "E")self.login("cordelia")- do_edit_message_assert_error(id_, "F", "The time limit for editing this message has passed")+ do_edit_message_assert_error(id_, "F", "The time limit for editing this message's topic has passed")# anyone should be able to edit "no topic" indefinitelymessage.set_topic_name("(no topic)")