Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_edit: Don't hide spinner on save success.
Karl Stolley4987600edcf8
diff --git a/web/src/message_edit.js b/web/src/message_edit.jsindex 8af05d59883..b58d1ee0675 100644--- a/web/src/message_edit.js+++ b/web/src/message_edit.js@@ -1040,7 +1040,13 @@ export function save_message_row_edit($row) {delete message.local_edit_timestamp;currently_echoing_messages.delete(message_id);}- hide_message_edit_spinner($row);+ // Ordinarily, in a code path like this, we'd make+ // a call to `hide_message_edit_spinner()`. But in+ // this instance, we want to avoid a momentary flash+ // of the Save button text before the edited message+ // re-renders. Note that any subsequent editing will+ // create a fresh Save button, without the spinner+ // class attached.},error(xhr) {if (msg_list === message_lists.current) {