Set CallLogEvent fields in proto that were missing

This commit is contained in:
Sasha Weiss 2024-06-14 13:55:12 -07:00 committed by GitHub
parent b3240b1fb1
commit 9396eae21d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,6 +48,14 @@ public class OutgoingCallLogEventSyncMessage: OWSOutgoingSyncMessage {
callLogEventBuilder.setTimestamp(callLogEvent.timestamp)
callLogEventBuilder.setType(callLogEvent.eventType.protoType)
if let callId = callLogEvent.callId {
callLogEventBuilder.setCallID(callId)
}
if let conversationId = callLogEvent.conversationId {
callLogEventBuilder.setConversationID(conversationId.asData)
}
let builder = SSKProtoSyncMessage.builder()
builder.setCallLogEvent(callLogEventBuilder.buildInfallibly())
return builder