Fix starting direct calls
This commit is contained in:
parent
d488239240
commit
90970921b5
1 changed files with 3 additions and 1 deletions
|
@ -495,10 +495,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
|
||||
|
|
Loading…
Reference in a new issue