Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
inline_topic_edit: Allow empty string as a valid topic name.
Prakhar Pratyush6252e3b3cfcf
diff --git a/web/src/message_edit.ts b/web/src/message_edit.tsindex 8eab1e01d8c..763c4ac1be4 100644--- a/web/src/message_edit.ts+++ b/web/src/message_edit.ts@@ -965,7 +965,7 @@ export function try_save_inline_topic_edit($row: JQuery): void {const old_topic = message.topic;const new_topic = $row.find<HTMLInputElement>("input.inline_topic_edit").val()?.trim();assert(new_topic !== undefined);- const topic_changed = new_topic !== old_topic && new_topic !== "";+ const topic_changed = new_topic !== old_topic;if (!topic_changed) {// this means the inline_topic_edit was opened and submitted without