Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message edit: Select message id before getting row.
evykassirer17bc9af1063d
diff --git a/web/src/message_edit.js b/web/src/message_edit.jsindex a5c20abd4b1..a54c921e86d 100644--- a/web/src/message_edit.js+++ b/web/src/message_edit.js@@ -1132,6 +1132,8 @@ export function edit_last_sent_message() {return;}+ message_lists.current.select_id(msg.id, {then_scroll: true, from_scroll: true});+const $msg_row = message_lists.current.get_row(msg.id);if (!$msg_row) {// This should never happen, since we got the message above@@ -1140,8 +1142,6 @@ export function edit_last_sent_message() {return;}- message_lists.current.select_id(msg.id, {then_scroll: true, from_scroll: true});-// Finally do the real work!compose_actions.cancel();start($msg_row, () => {