mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
compose: Store raw_content after fetching it for quoting.
This is a nice performance optimization for the rare case where the user does quote-and-reply on a message, aborts the compose, and then re-does the quote-and-reply.
This commit is contained in:
@@ -403,6 +403,7 @@ exports.quote_and_reply = function (opts) {
|
||||
url: '/json/messages/' + message_id,
|
||||
idempotent: true,
|
||||
success: function (data) {
|
||||
message.raw_content = data.raw_content;
|
||||
compose_ui.replace_syntax('[Quoting…]', '```quote\n' + data.raw_content + '\n```', textarea);
|
||||
$("#compose-textarea").trigger("autosize.resize");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user