Ensure left pane has correct timestamp for call

This commit is contained in:
Scott Nonnenberg 2024-05-28 15:13:09 +10:00 committed by GitHub
parent ad9dcb34f4
commit 06f71a7ef8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 62 additions and 29 deletions

View file

@ -13,7 +13,7 @@ export async function onCallEventSync(
syncEvent: CallEventSyncEvent
): Promise<void> {
const { callEvent, confirm } = syncEvent;
const { callEventDetails, receivedAtCounter } = callEvent;
const { callEventDetails, receivedAtCounter, receivedAtMS } = callEvent;
if (
callEventDetails.mode === CallMode.Direct ||
@ -31,6 +31,10 @@ export async function onCallEventSync(
}
}
await updateCallHistoryFromRemoteEvent(callEventDetails, receivedAtCounter);
await updateCallHistoryFromRemoteEvent(
callEventDetails,
receivedAtCounter,
receivedAtMS
);
confirm();
}