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(),
|
id: prevMessage?.id ?? generateGuid(),
|
||||||
conversationId: conversation.id,
|
conversationId: conversation.id,
|
||||||
type: 'call-history',
|
type: 'call-history',
|
||||||
sent_at: callHistory.timestamp,
|
timestamp: prevMessage?.timestamp ?? callHistory.timestamp,
|
||||||
timestamp: callHistory.timestamp,
|
sent_at: prevMessage?.sent_at ?? callHistory.timestamp,
|
||||||
received_at: receivedAtCounter ?? incrementMessageCounter(),
|
received_at:
|
||||||
received_at_ms: callHistory.timestamp,
|
prevMessage?.received_at ??
|
||||||
|
receivedAtCounter ??
|
||||||
|
incrementMessageCounter(),
|
||||||
|
received_at_ms: prevMessage?.received_at_ms ?? callHistory.timestamp,
|
||||||
readStatus,
|
readStatus,
|
||||||
seenStatus,
|
seenStatus,
|
||||||
callId: callHistory.callId,
|
callId: callHistory.callId,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue