Fix starting direct calls
Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
parent
09698894cc
commit
b3bb45d8f4
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue