Blur participant videos when calls are reconnecting
This commit is contained in:
parent
4ea0970e54
commit
777b9d52e9
11 changed files with 68 additions and 21 deletions
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)
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue