Sort message-initiated timer updates before the initiating message
This commit is contained in:
parent
918616e6ab
commit
e62606361d
3 changed files with 18 additions and 22 deletions
|
@ -2618,13 +2618,10 @@ export async function startApp(): Promise<void> {
|
|||
const { expireTimer } = details;
|
||||
const isValidExpireTimer = typeof expireTimer === 'number';
|
||||
if (isValidExpireTimer) {
|
||||
const ourId = window.ConversationController.getOurConversationId();
|
||||
const receivedAt = Date.now();
|
||||
|
||||
await conversation.updateExpirationTimer(
|
||||
expireTimer,
|
||||
ourId,
|
||||
receivedAt,
|
||||
window.ConversationController.getOurConversationId(),
|
||||
undefined,
|
||||
{
|
||||
fromSync: true,
|
||||
}
|
||||
|
@ -2717,11 +2714,10 @@ export async function startApp(): Promise<void> {
|
|||
return;
|
||||
}
|
||||
|
||||
const receivedAt = Date.now();
|
||||
await conversation.updateExpirationTimer(
|
||||
expireTimer,
|
||||
window.ConversationController.getOurConversationId(),
|
||||
receivedAt,
|
||||
undefined,
|
||||
{
|
||||
fromSync: true,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue