mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-22 22:29:30 +00:00
Remove references to outdated variables or types
This commit is contained in:
@@ -658,7 +658,7 @@ export const createLocalMembership$ = ({
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Keep matrix rtc session in sync with advertisedTransport$, connectRequested$
|
// Join and leave the session as needed
|
||||||
scope.reconcile(
|
scope.reconcile(
|
||||||
scope.behavior(combineLatest([joinParams$, joinAndPublishRequested$])),
|
scope.behavior(combineLatest([joinParams$, joinAndPublishRequested$])),
|
||||||
async ([joinParams, shouldConnect]) => {
|
async ([joinParams, shouldConnect]) => {
|
||||||
|
|||||||
@@ -179,7 +179,8 @@ export function createConnectionManager$({
|
|||||||
function* (transports) {
|
function* (transports) {
|
||||||
for (const transport of transports) {
|
for (const transport of transports) {
|
||||||
if (isLocalTransport(transport)) {
|
if (isLocalTransport(transport)) {
|
||||||
// This is the local transport; only the `LocalTransportWithSFUConfig` has a `sfuConfig` field.
|
// This is the local transport; only the `LocalTransport`
|
||||||
|
// interface has a `sfuConfig` field.
|
||||||
yield {
|
yield {
|
||||||
keys: [
|
keys: [
|
||||||
transport.transport.livekit_service_url,
|
transport.transport.livekit_service_url,
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ import {
|
|||||||
} from "./ObservableScope";
|
} from "./ObservableScope";
|
||||||
import { type Behavior } from "./Behavior";
|
import { type Behavior } from "./Behavior";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tracks the transports used by ourselves, plus all other MatrixRTC session
|
||||||
|
* members.
|
||||||
|
*/
|
||||||
export const membershipsAndTransports$ = (
|
export const membershipsAndTransports$ = (
|
||||||
scope: ObservableScope,
|
scope: ObservableScope,
|
||||||
memberships$: Behavior<Epoch<CallMembership[]>>,
|
memberships$: Behavior<Epoch<CallMembership[]>>,
|
||||||
@@ -31,14 +35,6 @@ export const membershipsAndTransports$ = (
|
|||||||
>;
|
>;
|
||||||
transports$: Behavior<Epoch<LivekitTransportConfig[]>>;
|
transports$: Behavior<Epoch<LivekitTransportConfig[]>>;
|
||||||
} => {
|
} => {
|
||||||
/**
|
|
||||||
* Lists the transports used by ourselves, plus all other MatrixRTC session
|
|
||||||
* members.
|
|
||||||
* For completeness this also lists the preferred transport and
|
|
||||||
* whether we are in multi-SFU mode or sticky events mode.
|
|
||||||
* `advertisedTransport$` reads these values together, so bundling them avoids inconsistent state or
|
|
||||||
* excessive updates when using RxJS.
|
|
||||||
*/
|
|
||||||
const membershipsWithTransport$: Behavior<
|
const membershipsWithTransport$: Behavior<
|
||||||
Epoch<
|
Epoch<
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user