mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-16 23:45:50 +00:00
[SDK] rename file LocalMember -> LocalMembership
This commit is contained in:
@@ -52,7 +52,7 @@ import { joinJsSdkSession } from "./matrixrtc/joinJsSdkSession";
|
|||||||
import {
|
import {
|
||||||
createLocalMembership$,
|
createLocalMembership$,
|
||||||
type PreparedTransport,
|
type PreparedTransport,
|
||||||
} from "./matrixrtc/LocalMember";
|
} from "./matrixrtc/LocalMembership";
|
||||||
import { discoverLocalTransport } from "./matrixrtc/LocalTransport";
|
import { discoverLocalTransport } from "./matrixrtc/LocalTransport";
|
||||||
import {
|
import {
|
||||||
createLocalRTCMember,
|
createLocalRTCMember,
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import {
|
|||||||
type PreparedTransport,
|
type PreparedTransport,
|
||||||
PublishState,
|
PublishState,
|
||||||
TransportState,
|
TransportState,
|
||||||
} from "./LocalMember";
|
} from "./LocalMembership";
|
||||||
import { flushPromises, testScope } from "../utils/test";
|
import { flushPromises, testScope } from "../utils/test";
|
||||||
|
|
||||||
const transport: Transport = { type: "livekit", livekit_service_url: "u" };
|
const transport: Transport = { type: "livekit", livekit_service_url: "u" };
|
||||||
@@ -116,7 +116,7 @@ export function createLocalMembership$({
|
|||||||
timings,
|
timings,
|
||||||
logger: parentLogger,
|
logger: parentLogger,
|
||||||
}: Props): LocalMembership {
|
}: Props): LocalMembership {
|
||||||
const logger = parentLogger.getChild("[LocalMember]");
|
const logger = parentLogger.getChild("[LocalMembership]");
|
||||||
|
|
||||||
const fatalTransportError$ = new Subject<MatrixRTCError>();
|
const fatalTransportError$ = new Subject<MatrixRTCError>();
|
||||||
const preparedTransport$ = preparedTransportWithErrors$.pipe(
|
const preparedTransport$ = preparedTransportWithErrors$.pipe(
|
||||||
@@ -14,7 +14,7 @@ import {
|
|||||||
type LocalMemberState,
|
type LocalMemberState,
|
||||||
PublishState,
|
PublishState,
|
||||||
TransportState,
|
TransportState,
|
||||||
} from "./LocalMember";
|
} from "./LocalMembership";
|
||||||
import { fatalError, participationStatus } from "./status";
|
import { fatalError, participationStatus } from "./status";
|
||||||
|
|
||||||
const publishing: LocalMemberState = {
|
const publishing: LocalMemberState = {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Please see LICENSE in the repository root for full details.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { type MatrixRTCError, type ParticipationStatus } from "../api";
|
import { type MatrixRTCError, type ParticipationStatus } from "../api";
|
||||||
import { type LocalMemberState, TransportState } from "./LocalMember";
|
import { type LocalMemberState, TransportState } from "./LocalMembership";
|
||||||
|
|
||||||
/** The local member's state, collapsed to what a host shows. */
|
/** The local member's state, collapsed to what a host shows. */
|
||||||
export function participationStatus(
|
export function participationStatus(
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ export function createConnectionManager$({
|
|||||||
// TODO logger: only construct one logger from the client and make it compatible via a EC specific sing
|
// TODO logger: only construct one logger from the client and make it compatible via a EC specific sing
|
||||||
|
|
||||||
const localTransportAsArray$ = localTransport$.pipe(
|
const localTransportAsArray$ = localTransport$.pipe(
|
||||||
// LocalMember already surfaces local transport errors properly in the UI,
|
// LocalMembership already surfaces local transport errors properly in the UI,
|
||||||
// here we can just swallow them
|
// here we can just swallow them
|
||||||
catchError(() => NEVER),
|
catchError(() => NEVER),
|
||||||
map((transport) => [transport]),
|
map((transport) => [transport]),
|
||||||
|
|||||||
Reference in New Issue
Block a user