minor comments/TODO cleaning

This commit is contained in:
Valere
2025-11-18 12:14:17 +01:00
parent 614762b5f8
commit 0076b54e52
3 changed files with 11 additions and 11 deletions

View File

@@ -371,8 +371,8 @@ export function createCallViewModel$(
// For mocking purposes it is recommended to only mock the functions creating those outputs. // For mocking purposes it is recommended to only mock the functions creating those outputs.
// All other fields are just temp computations for the mentioned output. // All other fields are just temp computations for the mentioned output.
// The class does not need anything except the values underneath the bar. // The class does not need anything except the values underneath the bar.
// The creation of the values under the bar are all tested independently and testing the callViewModel Should // The creations of the values under the bar are all tested independently and testing the callViewModel Should
// not test their cretation. Call view model only needs: // not test their creation. Call view model only needs:
// - memberships$ via createMemberships$ // - memberships$ via createMemberships$
// - localMembership via createLocalMembership$ // - localMembership via createLocalMembership$
// - callLifecycle via createCallNotificationLifecycle$ // - callLifecycle via createCallNotificationLifecycle$
@@ -438,7 +438,7 @@ export function createCallViewModel$(
matrixRTCMode.value$.pipe( matrixRTCMode.value$.pipe(
map((mode) => ({ map((mode) => ({
encryptMedia: livekitKeyProvider !== undefined, encryptMedia: livekitKeyProvider !== undefined,
// TODO. This might need to get called again on each cahnge of matrixRTCMode... // TODO. This might need to get called again on each change of matrixRTCMode...
matrixRTCMode: mode, matrixRTCMode: mode,
})), })),
), ),
@@ -636,7 +636,6 @@ export function createCallViewModel$(
/** /**
* List of user media (camera feeds) that we want tiles for. * List of user media (camera feeds) that we want tiles for.
*/ */
// TODO this also needs the local participant to be added.
const userMedia$ = scope.behavior<UserMedia[]>( const userMedia$ = scope.behavior<UserMedia[]>(
combineLatest([ combineLatest([
localMatrixLivekitMember$, localMatrixLivekitMember$,
@@ -1475,8 +1474,6 @@ export function createCallViewModel$(
reconnecting$: reconnecting$, reconnecting$: reconnecting$,
}; };
} }
// TODO-MULTI-SFU // Setup and update the keyProvider which was create by `createRoom` was a thing before. Now we never update if the E2EEsystem changes
// do we need this?
function getE2eeKeyProvider( function getE2eeKeyProvider(
e2eeSystem: EncryptionSystem, e2eeSystem: EncryptionSystem,

View File

@@ -262,7 +262,7 @@ export const createLocalMembership$ = ({
); );
const publisher$ = new BehaviorSubject<Publisher | null>(null); const publisher$ = new BehaviorSubject<Publisher | null>(null);
localConnection$.subscribe((connection) => { localConnection$.pipe(scope.bind()).subscribe((connection) => {
if (connection !== null && publisher$.value === null) { if (connection !== null && publisher$.value === null) {
// TODO looks strange to not change publisher if connection changes. // TODO looks strange to not change publisher if connection changes.
publisher$.next( publisher$.next(
@@ -339,7 +339,7 @@ export const createLocalMembership$ = ({
}); });
combineLatest([localTransport$, connectRequested$]).subscribe( combineLatest([localTransport$, connectRequested$]).subscribe(
// TODO reconnect on options change. // TODO reconnect when transport changes => create test.
([transport, connectRequested]) => { ([transport, connectRequested]) => {
if ( if (
transport === null || transport === null ||
@@ -573,7 +573,12 @@ interface EnterRTCSessionOptions {
} }
/** /**
* TODO! document this function properly * Does the necessary steps to enter the RTC session on the matrix side:
* - Preparing the membership info (FOCUS to use, options)
* - Sends the matrix event to join the call, and starts the membership manager:
* - Delay events management
* - Handles retries (fails only after several attempts)
*
* @param rtcSession * @param rtcSession
* @param transport * @param transport
* @param options * @param options

View File

@@ -104,7 +104,6 @@ describe("MatrixMemberMetadata", () => {
} }
} }
// TODO this is a regression, now there the own user is not always in the map. Ask Timo if fine
it("should show our own user if present in rtc session and room", () => { it("should show our own user if present in rtc session and room", () => {
withTestScheduler(({ behavior, expectObservable }) => { withTestScheduler(({ behavior, expectObservable }) => {
fakeMemberWith({ fakeMemberWith({
@@ -517,7 +516,6 @@ describe("MatrixMemberMetadata", () => {
} }
} }
// TODO this is a regression, now there the own user is not always in the map. Ask Timo if fine
it("should use avatar url from room members", () => { it("should use avatar url from room members", () => {
withTestScheduler(({ behavior, expectObservable }) => { withTestScheduler(({ behavior, expectObservable }) => {
fakeMemberWith({ fakeMemberWith({