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:
@@ -3,11 +3,12 @@
|
||||
|
||||
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import type { ActiveCallType } from '../types/Calling';
|
||||
import { CallMode, GroupCallConnectionState } from '../types/Calling';
|
||||
import { CallMode } from '../types/Calling';
|
||||
import type { ConversationType } from '../state/ducks/conversations';
|
||||
import type { LocalizerType } from '../types/Util';
|
||||
import { clearTimeoutIfNecessary } from '../util/clearTimeoutIfNecessary';
|
||||
import { CallingToast, DEFAULT_LIFETIME } from './CallingToast';
|
||||
import { isReconnecting } from '../util/callingIsReconnecting';
|
||||
|
||||
type PropsType = {
|
||||
activeCall: ActiveCallType;
|
||||
@@ -22,10 +23,7 @@ type ToastType =
|
||||
| undefined;
|
||||
|
||||
function getReconnectingToast({ activeCall, i18n }: PropsType): ToastType {
|
||||
if (
|
||||
activeCall.callMode === CallMode.Group &&
|
||||
activeCall.connectionState === GroupCallConnectionState.Reconnecting
|
||||
) {
|
||||
if (isReconnecting(activeCall)) {
|
||||
return {
|
||||
message: i18n('icu:callReconnecting'),
|
||||
type: 'static',
|
||||
|
||||
Reference in New Issue
Block a user