mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-19 07:58:46 +01:00
Blur participant videos when calls are reconnecting
This commit is contained in:
18
ts/util/callingIsReconnecting.ts
Normal file
18
ts/util/callingIsReconnecting.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import {
|
||||
CallMode,
|
||||
CallState,
|
||||
GroupCallConnectionState,
|
||||
} from '../types/Calling';
|
||||
import type { ActiveCallType } from '../types/Calling';
|
||||
|
||||
export function isReconnecting(activeCall: ActiveCallType): boolean {
|
||||
return (
|
||||
(activeCall.callMode === CallMode.Group &&
|
||||
activeCall.connectionState === GroupCallConnectionState.Reconnecting) ||
|
||||
(activeCall.callMode === CallMode.Direct &&
|
||||
activeCall.callState === CallState.Reconnecting)
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user