remove ReturnType
This commit is contained in:
@@ -93,7 +93,10 @@ import {
|
|||||||
} from "../layout-types.ts";
|
} from "../layout-types.ts";
|
||||||
import { type ElementCallError } from "../../utils/errors.ts";
|
import { type ElementCallError } from "../../utils/errors.ts";
|
||||||
import { type ObservableScope } from "../ObservableScope.ts";
|
import { type ObservableScope } from "../ObservableScope.ts";
|
||||||
import { createLocalMembership$ } from "./localMember/LocalMembership.ts";
|
import {
|
||||||
|
createLocalMembership$,
|
||||||
|
type LocalMemberConnectionState,
|
||||||
|
} from "./localMember/LocalMembership.ts";
|
||||||
import { createLocalTransport$ } from "./localMember/LocalTransport.ts";
|
import { createLocalTransport$ } from "./localMember/LocalTransport.ts";
|
||||||
import {
|
import {
|
||||||
createMemberships$,
|
createMemberships$,
|
||||||
@@ -167,10 +170,6 @@ type AudioLivekitItem = {
|
|||||||
url: string;
|
url: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
type JoinReturn = ReturnType<
|
|
||||||
ReturnType<typeof createLocalMembership$>["requestConnect"]
|
|
||||||
>;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A view model providing all the application logic needed to show the in-call
|
* A view model providing all the application logic needed to show the in-call
|
||||||
* UI (may eventually be expanded to cover the lobby and feedback screens in the
|
* UI (may eventually be expanded to cover the lobby and feedback screens in the
|
||||||
@@ -189,7 +188,7 @@ export class CallViewModel {
|
|||||||
public hangup: () => void;
|
public hangup: () => void;
|
||||||
|
|
||||||
// joining
|
// joining
|
||||||
public join: () => JoinReturn;
|
public join: () => LocalMemberConnectionState;
|
||||||
|
|
||||||
// screen sharing
|
// screen sharing
|
||||||
public toggleScreenSharing: (() => void) | null;
|
public toggleScreenSharing: (() => void) | null;
|
||||||
|
|||||||
@@ -335,6 +335,7 @@ export const createLocalMembership$ = ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
combineLatest([localTransport$, connectRequested$]).subscribe(
|
combineLatest([localTransport$, connectRequested$]).subscribe(
|
||||||
|
// TODO reconnect on options change.
|
||||||
([transport, connectRequested]) => {
|
([transport, connectRequested]) => {
|
||||||
if (
|
if (
|
||||||
transport === null ||
|
transport === null ||
|
||||||
|
|||||||
Reference in New Issue
Block a user