(fix): call being getting initialised even on the login screen
This commit is contained in:
parent
9e3a6040e3
commit
a0e3e85467
6 changed files with 73 additions and 55 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import { RoomEvent } from "livekit-client";
|
||||
import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
||||
import { useCall } from "../../store";
|
||||
import { useCall, getRoom } from "../../store";
|
||||
import Base from "../../components/modals/base";
|
||||
|
||||
const SECONDARY_ROW_HEIGHT_PX = 180;
|
||||
const STACK_GAP_PX = 12;
|
||||
|
||||
export default function View() {
|
||||
const room = useCall((state) => state.room);
|
||||
const room = getRoom();
|
||||
const layoutVersion = useCall((state) => state.layoutVersion);
|
||||
|
||||
const usersInFocusedViewHidden = useCall(
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { RoomEvent } from "livekit-client";
|
||||
import { useEffect, useMemo, useRef, useState } from "react";
|
||||
import { useCall } from "../../store";
|
||||
import { useCall, getRoom } from "../../store";
|
||||
import Base from "../../components/modals/base";
|
||||
|
||||
const TILE_ASPECT_RATIO = 16 / 9;
|
||||
|
|
@ -82,7 +82,7 @@ function calculateOptimalGridLayout(
|
|||
}
|
||||
|
||||
export default function View() {
|
||||
const room = useCall((state) => state.room);
|
||||
const room = getRoom();
|
||||
const layoutVersion = useCall((state) => state.layoutVersion);
|
||||
const activeScreenShareParticipantIds = useCall(
|
||||
(state) => state.activeScreenShareParticipantIds,
|
||||
|
|
|
|||
Loading…
Reference in a new issue