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,
|
peerId: AciString | string,
|
||||||
call: Call
|
call: Call
|
||||||
): CallDetails {
|
): CallDetails {
|
||||||
|
const ringerId = call.isIncoming ? call.remoteUserId : null;
|
||||||
return callDetailsSchema.parse({
|
return callDetailsSchema.parse({
|
||||||
callId: Long.fromValue(call.callId).toString(),
|
callId: Long.fromValue(call.callId).toString(),
|
||||||
peerId,
|
peerId,
|
||||||
ringerId: call.isIncoming ? call.remoteUserId : null,
|
ringerId,
|
||||||
|
startedById: ringerId,
|
||||||
mode: CallMode.Direct,
|
mode: CallMode.Direct,
|
||||||
type: call.isVideoCall ? CallType.Video : CallType.Audio,
|
type: call.isVideoCall ? CallType.Video : CallType.Audio,
|
||||||
direction: call.isIncoming
|
direction: call.isIncoming
|
||||||
|
|
Loading…
Reference in a new issue