Do not set isRecipientUpdate for edit message sync sends

This commit is contained in:
Josh Perez 2023-06-13 11:32:48 -07:00 committed by GitHub
parent d169ce6799
commit 5c1b5dcad8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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