From b3bb45d8f4ce62574c0a2f0d1486cb826d51a0df Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Thu, 19 Sep 2024 17:10:09 -0500 Subject: [PATCH] Fix starting direct calls Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> --- ts/util/callDisposition.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ts/util/callDisposition.ts b/ts/util/callDisposition.ts index 7cd2de04b6e9..cc8b295907cc 100644 --- a/ts/util/callDisposition.ts +++ b/ts/util/callDisposition.ts @@ -483,10 +483,12 @@ export function getCallDetailsFromDirectCall( peerId: AciString | string, call: Call ): CallDetails { + const ringerId = call.isIncoming ? call.remoteUserId : null; return callDetailsSchema.parse({ callId: Long.fromValue(call.callId).toString(), peerId, - ringerId: call.isIncoming ? call.remoteUserId : null, + ringerId, + startedById: ringerId, mode: CallMode.Direct, type: call.isVideoCall ? CallType.Video : CallType.Audio, direction: call.isIncoming