mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Use correct timestamp for receipts of edited messages
This commit is contained in:
@@ -24,6 +24,7 @@ import dataInterface from '../sql/Client';
|
||||
import * as log from '../logging/log';
|
||||
import { getSourceUuid } from '../messages/helpers';
|
||||
import { queueUpdateMessage } from '../util/messageBatcher';
|
||||
import { getMessageSentTimestamp } from '../util/getMessageSentTimestamp';
|
||||
|
||||
const { deleteSentProtoRecipient } = dataInterface;
|
||||
|
||||
@@ -159,7 +160,7 @@ export class MessageReceipts extends Collection<MessageReceiptModel> {
|
||||
return [];
|
||||
}
|
||||
|
||||
const sentAt = message.get('sent_at');
|
||||
const sentAt = getMessageSentTimestamp(message.attributes, { log });
|
||||
const receipts = this.filter(
|
||||
receipt => receipt.get('messageSentAt') === sentAt
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user