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.

message-edit: Show the edited content on editing message failure.

Signior-X0a4eabd3e02d
diff --git a/static/js/message_edit.js b/static/js/message_edit.js
index 596dee82952..6a3c6ed826d 100644
--- a/static/js/message_edit.js
+++ b/static/js/message_edit.js
@@ -819,8 +819,8 @@ export function save_message_row_edit(row) {
row = message_lists.current.get_row(message_id);
if (!is_editing(message_id)) {
- // Return to the message editing open UI state.
- start_edit_maintaining_scroll(row, echo_data.orig_raw_content);
+ // Return to the message editing open UI state with the edited content.
+ start_edit_maintaining_scroll(row, echo_data.raw_content);
}
}