Use correct timestamp for receipts of edited messages
This commit is contained in:
parent
8fe0047822
commit
5869717cd3
21 changed files with 156 additions and 52 deletions
|
@ -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})`);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue