post merge fix

This commit is contained in:
Valere
2025-11-14 14:33:06 +01:00
parent 596205474c
commit 7cd9dd7acb
3 changed files with 36 additions and 38 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ export class CallViewModel {
private connectionManager = createConnectionManager$({
scope: this.scope,
connectionFactory: this.connectionFactory,
inputTransports$: this.allTransports$,
inputTransports$: this.membershipsAndTransports.transports$,
logger: logger,
});
@@ -32,7 +32,7 @@ import {
switchMap,
tap,
} from "rxjs";
import { type Logger, logger } from "matrix-js-sdk/lib/logger";
import { type Logger } from "matrix-js-sdk/lib/logger";
import { type Behavior } from "../../Behavior";
import { type IConnectionManager } from "../remoteMembers/ConnectionManager";
@@ -54,7 +54,7 @@ import { PosthogAnalytics } from "../../../analytics/PosthogAnalytics.ts";
import { MatrixRTCMode } from "../../../settings/settings.ts";
import { Config } from "../../../config/Config.ts";
import { type Connection } from "../remoteMembers/Connection.ts";
const logger = rootLogger.getChild("[LocalMembership]");
export enum LivekitState {
Uninitialized = "uninitialized",
Connecting = "connecting",
@@ -220,8 +220,7 @@ export const createLocalMembership$ = ({
/**
* Whether we are connected to the MatrixRTC session.
*/
const homeserverConnected$ = scope
.behavior(
const homeserverConnected$ = scope.behavior(
// To consider ourselves connected to MatrixRTC, we check the following:
and$(
// The client is connected to the sync loop
@@ -246,12 +245,11 @@ export const createLocalMembership$ = ({
startWith(null),
map(() => matrixRTCSession.probablyLeft !== true),
),
),
)
.pipe(
).pipe(
tap((connected) => {
prefixLogger.info(`Homeserver connected update: ${connected}`);
}),
),
);
// /**
@@ -609,10 +607,11 @@ async function enterRTCSession(
},
);
if (widget) {
try {
// try {
await widget.api.transport.send(ElementWidgetActions.JoinCall, {});
} catch (e) {
logger.error("Failed to send join action", e);
}
// TODO Why catch and swallow?
// } catch (e) {
// logger.error("Failed to send join action", e);
// }
}
}
-1
View File
@@ -19,7 +19,6 @@ import {
take,
takeUntil,
} from "rxjs";
import { logger } from "matrix-js-sdk/lib/logger";
import { type Behavior } from "./Behavior";