mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-08 20:09:19 +00:00
Lint
This commit is contained in:
@@ -24,7 +24,11 @@ import {
|
|||||||
} from "livekit-client";
|
} from "livekit-client";
|
||||||
import * as ComponentsCore from "@livekit/components-core";
|
import * as ComponentsCore from "@livekit/components-core";
|
||||||
import { isEqual } from "lodash";
|
import { isEqual } from "lodash";
|
||||||
import { CallMembership, MatrixRTCSession, MatrixRTCSessionEvent } from "matrix-js-sdk/src/matrixrtc";
|
import {
|
||||||
|
CallMembership,
|
||||||
|
MatrixRTCSession,
|
||||||
|
MatrixRTCSessionEvent,
|
||||||
|
} from "matrix-js-sdk/src/matrixrtc";
|
||||||
|
|
||||||
import { CallViewModel, Layout } from "./CallViewModel";
|
import { CallViewModel, Layout } from "./CallViewModel";
|
||||||
import {
|
import {
|
||||||
@@ -77,7 +81,7 @@ const members = new Map([alice, bob, carol, dave].map((p) => [p.userId, p]));
|
|||||||
|
|
||||||
const aliceRtcMember = mockMembership(aliceId, aliceDev);
|
const aliceRtcMember = mockMembership(aliceId, aliceDev);
|
||||||
const bobRtcMember = mockMembership(bobId, bobDev);
|
const bobRtcMember = mockMembership(bobId, bobDev);
|
||||||
const carolRtcMember = mockMembership(carolId, carolDev);
|
// const carolRtcMember = mockMembership(carolId, carolDev);
|
||||||
const daveRtcMember = mockMembership(daveId, daveDev);
|
const daveRtcMember = mockMembership(daveId, daveDev);
|
||||||
|
|
||||||
export interface GridLayoutSummary {
|
export interface GridLayoutSummary {
|
||||||
|
|||||||
@@ -497,7 +497,7 @@ export class CallViewModel extends ViewModel {
|
|||||||
member,
|
member,
|
||||||
participant,
|
participant,
|
||||||
this.encryptionSystem,
|
this.encryptionSystem,
|
||||||
this.livekitRoom
|
this.livekitRoom,
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -552,6 +552,7 @@ export class CallViewModel extends ViewModel {
|
|||||||
undefined,
|
undefined,
|
||||||
participant,
|
participant,
|
||||||
this.encryptionSystem,
|
this.encryptionSystem,
|
||||||
|
this.livekitRoom,
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -724,14 +725,6 @@ export class CallViewModel extends ViewModel {
|
|||||||
this.scope.state(),
|
this.scope.state(),
|
||||||
);
|
);
|
||||||
|
|
||||||
private readonly hasRemoteScreenShares: Observable<boolean> =
|
|
||||||
this.spotlight.pipe(
|
|
||||||
map((spotlight) =>
|
|
||||||
spotlight.some((vm) => !vm.local && vm instanceof ScreenShareViewModel),
|
|
||||||
),
|
|
||||||
distinctUntilChanged(),
|
|
||||||
);
|
|
||||||
|
|
||||||
private readonly pip: Observable<UserMediaViewModel | null> =
|
private readonly pip: Observable<UserMediaViewModel | null> =
|
||||||
this.spotlightAndPip.pipe(switchMap(([, pip]) => pip));
|
this.spotlightAndPip.pipe(switchMap(([, pip]) => pip));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user