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.

stream_popover: Show merge-topics warning for empty topic moves.

Ashutoshbind15c7bfa9f6b0f3
diff --git a/web/src/stream_popover.ts b/web/src/stream_popover.ts
index a58bb4711f6..62155463791 100644
--- a/web/src/stream_popover.ts
+++ b/web/src/stream_popover.ts
@@ -838,13 +838,6 @@ export async function build_move_topic_to_stream_popover(
}
assert(new_topic_name !== undefined);
- // Don't show warning for empty topic as the user is probably
- // about to type a new topic name. Note that if topics are
- // mandatory, then the submit button is disabled, which returns
- // early above.
- if (new_topic_name === "" || new_topic_name === "(no topic)") {
- return false;
- }
let stream_id: number;
if (stream_widget_value === undefined) {
// Set stream_id to current_stream_id since the user is not