Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_edit: Remove unused topic edit code.
evykassirerb0c90c0ba2d6
diff --git a/web/src/message_edit.js b/web/src/message_edit.jsindex c64cc754583..43a7e2d49b4 100644--- a/web/src/message_edit.js+++ b/web/src/message_edit.js@@ -364,18 +364,6 @@ function handle_message_row_edit_keydown(e) {composebox_typeahead.handle_enter($(e.target), e);return;}- } else if ($(".typeahead:visible").length > 0) {- // Accepting typeahead is handled by the typeahead library.- return;- } else if (- $(e.target).hasClass("message_edit_topic") ||- $(e.target).hasClass("message_edit_topic_propagate")- ) {- // Enter should save the topic edit, as long as it's- // not being used to accept typeahead.- const $row = $(e.target).closest(".message_row");- save_message_row_edit($row);- e.stopPropagation();}} else if (e.key === "Escape") {end_if_focused_on_message_row_edit();