Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
quote_message: Attempt to use `raw_content` in error callback.
apoorvapendseebd80155e029
diff --git a/web/src/compose_reply.ts b/web/src/compose_reply.tsindex 88f202b5170..ebdeca081b9 100644--- a/web/src/compose_reply.ts+++ b/web/src/compose_reply.ts@@ -341,7 +341,9 @@ export function quote_message(opts: {// markdown, in case the request timed out or failed for another reason,// such as the client being offline.const message_html = message.content;- const md = compose_paste.paste_handler_converter(message_html);+ // We try to access message.raw_content one last time here, just in case+ // it was populated during the waiting time.+ const md = message.raw_content ?? compose_paste.paste_handler_converter(message_html);replace_content(message, md);},});