Fix timestamps on call history message updating
This commit is contained in:
parent
fc34cd88b8
commit
6cc25fe9e8
1 changed files with 7 additions and 4 deletions
|
@ -832,10 +832,13 @@ async function updateLocalCallHistory(
|
|||
id: prevMessage?.id ?? generateGuid(),
|
||||
conversationId: conversation.id,
|
||||
type: 'call-history',
|
||||
sent_at: callHistory.timestamp,
|
||||
timestamp: callHistory.timestamp,
|
||||
received_at: receivedAtCounter ?? incrementMessageCounter(),
|
||||
received_at_ms: callHistory.timestamp,
|
||||
timestamp: prevMessage?.timestamp ?? callHistory.timestamp,
|
||||
sent_at: prevMessage?.sent_at ?? callHistory.timestamp,
|
||||
received_at:
|
||||
prevMessage?.received_at ??
|
||||
receivedAtCounter ??
|
||||
incrementMessageCounter(),
|
||||
received_at_ms: prevMessage?.received_at_ms ?? callHistory.timestamp,
|
||||
readStatus,
|
||||
seenStatus,
|
||||
callId: callHistory.callId,
|
||||
|
|
Loading…
Add table
Reference in a new issue