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: Check 'topic_name is not None' and not 'content is None'.

sahil8396be232aa4253
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py
index f308ae9af0c..ec5e1854ea0 100644
--- a/zerver/lib/actions.py
+++ b/zerver/lib/actions.py
@@ -2798,7 +2798,7 @@ def check_update_message(
# sent the message, they are not the admin, and the time limit for editing
# topics is passed, raise an error.
if (
- content is None
+ topic_name is not None
and message.sender != user_profile
and not user_profile.is_realm_admin
and not is_no_topic_msg