Use correct timestamp for receipts of edited messages

This commit is contained in:
Fedor Indutny 2023-05-16 10:37:12 -07:00 committed by GitHub
parent 8fe0047822
commit 5869717cd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 156 additions and 52 deletions

View file

@ -240,7 +240,7 @@ export async function handleEditMessage(
window.Whisper.deliveryReceiptQueue.add(() => {
window.Whisper.deliveryReceiptBatcher.add({
messageId: mainMessage.id,
conversationId: editAttributes.fromId,
conversationId: editAttributes.conversationId,
senderE164: editAttributes.message.source,
senderUuid: editAttributes.message.sourceUuid,
timestamp: editAttributes.message.timestamp,
@ -263,7 +263,7 @@ export async function handleEditMessage(
mainMessageModel.attributes,
window.textsecure.storage.user.getCheckedUuid().toString(),
{
fromId: editAttributes.fromId,
conversationId: editAttributes.conversationId,
messageId: mainMessage.id,
readStatus,
sentAt: upgradedEditedMessageData.timestamp,