Fix timestamps on call history message updating
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user