Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_edit: Add period to error message raised due to time limit.

Sahil Batraa143d6b62c81
diff --git a/zerver/actions/message_edit.py b/zerver/actions/message_edit.py
index a20abb5c5a8..1a7d19eb4a2 100644
--- a/zerver/actions/message_edit.py
+++ b/zerver/actions/message_edit.py
@@ -1211,7 +1211,7 @@ def check_update_message(
user_profile.realm.move_messages_within_stream_limit_seconds + edit_limit_buffer
)
if (timezone_now() - message.date_sent) > datetime.timedelta(seconds=deadline_seconds):
- raise JsonableError(_("The time limit for editing this message's topic has passed"))
+ raise JsonableError(_("The time limit for editing this message's topic has passed."))
rendering_result = None
links_for_embed: Set[str] = set()
diff --git a/zerver/tests/test_message_edit.py b/zerver/tests/test_message_edit.py
index e5ba8f382bd..1a613f4af5f 100644
--- a/zerver/tests/test_message_edit.py
+++ b/zerver/tests/test_message_edit.py
@@ -1201,17 +1201,17 @@ class EditMessageTest(EditMessageTestCase):
do_edit_message_assert_success(id_, "E", "iago")
do_edit_message_assert_success(id_, "F", "shiva")
do_edit_message_assert_error(
- id_, "G", "The time limit for editing this message's topic has passed", "cordelia"
+ id_, "G", "The time limit for editing this message's topic has passed.", "cordelia"
)
do_edit_message_assert_error(
- id_, "G", "The time limit for editing this message's topic has passed", "hamlet"
+ id_, "G", "The time limit for editing this message's topic has passed.", "hamlet"
)
# topic edit permissions apply on "no topic" messages as well
message.set_topic_name("(no topic)")
message.save()
do_edit_message_assert_error(
- id_, "G", "The time limit for editing this message's topic has passed", "cordelia"
+ id_, "G", "The time limit for editing this message's topic has passed.", "cordelia"
)
# set the topic edit limit to two weeks