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:
@@ -30,6 +30,7 @@ import { isSignalConversation } from './isSignalConversation';
|
||||
import { strictAssert } from './assert';
|
||||
import { timeAndLogIfTooLong } from './timeAndLogIfTooLong';
|
||||
import { makeQuote } from './makeQuote';
|
||||
import { getMessageSentTimestamp } from './getMessageSentTimestamp';
|
||||
|
||||
const SEND_REPORT_THRESHOLD_MS = 25;
|
||||
|
||||
@@ -82,9 +83,12 @@ export async function sendEditedMessage(
|
||||
}
|
||||
|
||||
const timestamp = Date.now();
|
||||
const targetSentTimestamp =
|
||||
targetMessage.attributes.editMessageTimestamp ??
|
||||
targetMessage.attributes.timestamp;
|
||||
const targetSentTimestamp = getMessageSentTimestamp(
|
||||
targetMessage.attributes,
|
||||
{
|
||||
log,
|
||||
}
|
||||
);
|
||||
|
||||
log.info(`${idLog}: edited(${timestamp}) original(${targetSentTimestamp})`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user