mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-24 02:02:52 +00:00
Use Array.some where it's appropriate
This commit is contained in:
1 parent
12b719da95
commit
1efa594430
1 file changed
+1
-1
@@ -377,7 +377,7 @@ export class CallViewModel extends ViewModel {
|
||||
|
||||
private readonly hasRemoteScreenShares: Observable<boolean> =
|
||||
this.screenShares.pipe(
|
||||
map((ms) => ms.find((m) => !m.vm.local) !== undefined),
|
||||
map((ms) => ms.some((m) => !m.vm.local)),
|
||||
distinctUntilChanged(),
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user