Fix PiP and call settings in reconnecting calls
This commit is contained in:
parent
ea37980fc3
commit
3ff9b87a22
3 changed files with 7 additions and 2 deletions
|
@ -7,10 +7,11 @@ import {
|
|||
GroupCallConnectionState,
|
||||
} from '../types/Calling';
|
||||
import type { ActiveCallType } from '../types/Calling';
|
||||
import { isGroupOrAdhocActiveCall } from './isGroupOrAdhocCall';
|
||||
|
||||
export function isReconnecting(activeCall: ActiveCallType): boolean {
|
||||
return (
|
||||
(activeCall.callMode === CallMode.Group &&
|
||||
(isGroupOrAdhocActiveCall(activeCall) &&
|
||||
activeCall.connectionState === GroupCallConnectionState.Reconnecting) ||
|
||||
(activeCall.callMode === CallMode.Direct &&
|
||||
activeCall.callState === CallState.Reconnecting)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue