mirror of
https://github.com/vector-im/element-call.git
synced 2026-05-31 11:34:38 +00:00
cleanup
This commit is contained in:
@@ -110,10 +110,11 @@ function buildDeviceBehaviors(
|
||||
toggleBlur$: scope.behavior(
|
||||
combineLatest([backgroundBlurSettings.value$, disableSwitcher$]).pipe(
|
||||
map(([current, switcherDisabled]) => {
|
||||
return () =>
|
||||
!switcherDisabled && supportsBackgroundProcessors()
|
||||
? (): void => backgroundBlurSettings.setValue(!current)
|
||||
: constant(undefined);
|
||||
return !switcherDisabled && supportsBackgroundProcessors()
|
||||
? (): void => {
|
||||
backgroundBlurSettings.setValue(!current);
|
||||
}
|
||||
: undefined;
|
||||
}),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user