File tree 3 files changed +5
-5
lines changed
packages/react-composites/src/composites
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ import { _isInLobbyOrConnecting } from '@internal/calling-component-bindings';
7
7
import { ControlBar , DevicesButton , ParticipantMenuItemsCallback } from '@internal/react-components' ;
8
8
/* @conditional -compile-remove(PSTN-calls) */ /* @conditional -compile-remove(one-to-n-calling) */
9
9
import { HoldButton } from '@internal/react-components' ;
10
- import React , { useCallback , useMemo } from 'react' ;
10
+ import React , { useMemo } from 'react' ;
11
+ /* @conditional -compile-remove(DNS) */
12
+ import { useCallback } from 'react' ;
11
13
import { CallControlOptions } from '../types/CallControlOptions' ;
12
14
import { Camera } from './buttons/Camera' ;
13
15
import { Devices } from './buttons/Devices' ;
Original file line number Diff line number Diff line change @@ -176,9 +176,11 @@ const createCompositeHandlers = memoizeOne(
176
176
} ;
177
177
return await adapter . startVideoBackgroundEffect ( replacementConfig ) ;
178
178
} ,
179
+ /* @conditional -compile-remove(DNS) */
179
180
onStartNoiseSuppressionEffect : async ( ) => {
180
181
return await adapter . startNoiseSuppressionEffect ( ) ;
181
182
} ,
183
+ /* @conditional -compile-remove(DNS) */
182
184
onStopNoiseSuppressionEffect : async ( ) => {
183
185
return await adapter . stopNoiseSuppressionEffect ( ) ;
184
186
} ,
Original file line number Diff line number Diff line change @@ -102,17 +102,13 @@ export const VideoEffectsPaneContent = (props: {
102
102
type : 'blur' ,
103
103
timestamp : new Date ( Date . now ( ) )
104
104
} ) ;
105
- await adapter . startNoiseSuppressionEffect ( ) ;
106
105
await adapter . startVideoBackgroundEffect ( blurEffect ) ;
107
- await adapter . startNoiseSuppressionEffect ( ) ;
108
106
adapter . updateSelectedVideoBackgroundEffect ( blurEffect ) ;
109
107
} else if ( effectKey === 'none' ) {
110
108
const noneEffect : VideoBackgroundNoEffect = {
111
109
effectName : effectKey
112
110
} ;
113
- await adapter . stopNoiseSuppressionEffect ( ) ;
114
111
await adapter . stopVideoBackgroundEffects ( ) ;
115
- await adapter . stopNoiseSuppressionEffect ( ) ;
116
112
adapter . updateSelectedVideoBackgroundEffect ( noneEffect ) ;
117
113
} else {
118
114
const backgroundImg = selectableVideoEffects . find ( ( effect ) => {
You can’t perform that action at this time.
0 commit comments