Do not set isRecipientUpdate for edit message sync sends
This commit is contained in:
parent
d169ce6799
commit
5c1b5dcad8
1 changed files with 2 additions and 2 deletions
|
@ -1774,7 +1774,8 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
if (!dataMessage) {
|
||||
return;
|
||||
}
|
||||
const isUpdate = Boolean(this.get('synced'));
|
||||
const isEditedMessage = Boolean(this.get('editHistory'));
|
||||
const isUpdate = Boolean(this.get('synced')) && !isEditedMessage;
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const conv = this.getConversation()!;
|
||||
|
||||
|
@ -1806,7 +1807,6 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
map(conversationsWithSealedSender, c => c.id)
|
||||
);
|
||||
|
||||
const isEditedMessage = Boolean(this.get('editHistory'));
|
||||
const timestamp = getMessageSentTimestamp(this.attributes, { log });
|
||||
|
||||
const encodedContent = isEditedMessage
|
||||
|
|
Loading…
Reference in a new issue