mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix PiP and call settings in reconnecting calls
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user