From fb91cd6f4d011e2a4ac81710599295cd42a9dbe0 Mon Sep 17 00:00:00 2001 From: Prakhar Pratyush Date: Wed, 15 Jan 2025 01:10:39 +0530 Subject: [PATCH] message_edit: Disallow resolving empty string topic. This commit makes changes to the edit message endpoint to disallow resolving empty string topic. It also removes the resolve topic button in the web client from topic popover and message header for empty string topic. --- .../left_sidebar_topic_actions_popover.hbs | 2 +- web/templates/recipient_row.hbs | 2 +- zerver/actions/message_edit.py | 6 ++++++ zerver/openapi/zulip.yaml | 4 ++++ zerver/tests/test_message_move_topic.py | 14 ++++++++++++++ 5 files changed, 26 insertions(+), 2 deletions(-) diff --git a/web/templates/popovers/left_sidebar/left_sidebar_topic_actions_popover.hbs b/web/templates/popovers/left_sidebar/left_sidebar_topic_actions_popover.hbs index 844c1bb9d7..95344ce04a 100644 --- a/web/templates/popovers/left_sidebar/left_sidebar_topic_actions_popover.hbs +++ b/web/templates/popovers/left_sidebar/left_sidebar_topic_actions_popover.hbs @@ -86,7 +86,7 @@ {{/if}} - {{#if can_rename_topic}} + {{#if (and can_rename_topic (not is_empty_string_topic))}}