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.

topics: Do not show warning on case only rename in move modal.

Shubham Padia7472c6b430e0
diff --git a/web/src/stream_popover.ts b/web/src/stream_popover.ts
index e253ca791d5..e0836411c40 100644
--- a/web/src/stream_popover.ts
+++ b/web/src/stream_popover.ts
@@ -832,6 +832,12 @@ export async function build_move_topic_to_stream_popover(
}
assert(new_topic_name !== undefined);
+
+ // Don't show this warning in case only rename.
+ if (new_topic_name.trim().toLowerCase() === args.topic_name.trim().toLowerCase()) {
+ return false;
+ }
+
let stream_id: number;
if (stream_widget_value === undefined) {
// Set stream_id to current_stream_id since the user is not