Fix ringing direct calls to wait for after prering state
This commit is contained in:
parent
aac94b0217
commit
32d1581da1
1 changed files with 1 additions and 5 deletions
|
@ -45,7 +45,7 @@ export const getRingingCall = (
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return isRinging(call.callState) && call.callEndedReason == null;
|
return call.callState === CallState.Ringing && call.callEndedReason == null;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (ringingDirect) {
|
if (ringingDirect) {
|
||||||
|
@ -111,10 +111,6 @@ export function isLonelyGroup(conversation: CallingConversationType): boolean {
|
||||||
return (conversation.sortedGroupMembers?.length ?? 0) < 2;
|
return (conversation.sortedGroupMembers?.length ?? 0) < 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
function isRinging(callState: CallState | undefined): boolean {
|
|
||||||
return callState === CallState.Prering || callState === CallState.Ringing;
|
|
||||||
}
|
|
||||||
|
|
||||||
function isConnected(connectionState: GroupCallConnectionState): boolean {
|
function isConnected(connectionState: GroupCallConnectionState): boolean {
|
||||||
return (
|
return (
|
||||||
connectionState === GroupCallConnectionState.Connecting ||
|
connectionState === GroupCallConnectionState.Connecting ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue