Do not set isRecipientUpdate for edit message sync sends
This commit is contained in:
@@ -1774,7 +1774,8 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||||||
if (!dataMessage) {
|
if (!dataMessage) {
|
||||||
return;
|
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
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
const conv = this.getConversation()!;
|
const conv = this.getConversation()!;
|
||||||
|
|
||||||
@@ -1806,7 +1807,6 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||||||
map(conversationsWithSealedSender, c => c.id)
|
map(conversationsWithSealedSender, c => c.id)
|
||||||
);
|
);
|
||||||
|
|
||||||
const isEditedMessage = Boolean(this.get('editHistory'));
|
|
||||||
const timestamp = getMessageSentTimestamp(this.attributes, { log });
|
const timestamp = getMessageSentTimestamp(this.attributes, { log });
|
||||||
|
|
||||||
const encodedContent = isEditedMessage
|
const encodedContent = isEditedMessage
|
||||||
|
Reference in New Issue
Block a user