copyQuoteContentFromOriginal: Copy bodyRanges alongside body text
This commit is contained in:
parent
77223b9a3d
commit
c1da469996
1 changed files with 4 additions and 0 deletions
|
@ -2055,6 +2055,10 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
||||||
|
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
quote.text = getQuoteBodyText(originalMessage.attributes, quote.id);
|
quote.text = getQuoteBodyText(originalMessage.attributes, quote.id);
|
||||||
|
|
||||||
|
// eslint-disable-next-line no-param-reassign
|
||||||
|
quote.bodyRanges = originalMessage.attributes.bodyRanges;
|
||||||
|
|
||||||
if (firstAttachment) {
|
if (firstAttachment) {
|
||||||
firstAttachment.thumbnail = null;
|
firstAttachment.thumbnail = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue