From 9396eae21dfd47214db9935e0fbc06251f419a6e Mon Sep 17 00:00:00 2001 From: Sasha Weiss Date: Fri, 14 Jun 2024 13:55:12 -0700 Subject: [PATCH] Set CallLogEvent fields in proto that were missing --- .../Calls/OutgoingCallLogEventSyncMessage.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SignalServiceKit/Calls/OutgoingCallLogEventSyncMessage.swift b/SignalServiceKit/Calls/OutgoingCallLogEventSyncMessage.swift index 85796c286d..593090f140 100644 --- a/SignalServiceKit/Calls/OutgoingCallLogEventSyncMessage.swift +++ b/SignalServiceKit/Calls/OutgoingCallLogEventSyncMessage.swift @@ -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