From c1da469996baffa033201eccbf92d9f2db04a67a Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 17 May 2023 15:37:35 -0700 Subject: [PATCH] copyQuoteContentFromOriginal: Copy bodyRanges alongside body text --- ts/models/messages.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts/models/messages.ts b/ts/models/messages.ts index 7d5a206cb..4b850113c 100644 --- a/ts/models/messages.ts +++ b/ts/models/messages.ts @@ -2055,6 +2055,10 @@ export class MessageModel extends window.Backbone.Model { // eslint-disable-next-line no-param-reassign quote.text = getQuoteBodyText(originalMessage.attributes, quote.id); + + // eslint-disable-next-line no-param-reassign + quote.bodyRanges = originalMessage.attributes.bodyRanges; + if (firstAttachment) { firstAttachment.thumbnail = null; }