copyQuoteContentFromOriginal: Copy bodyRanges alongside body text

This commit is contained in:
Scott Nonnenberg 2023-05-17 15:37:35 -07:00 committed by GitHub
parent 77223b9a3d
commit c1da469996
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2055,6 +2055,10 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
// 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;
}