(fix): call being getting initialised even on the login screen
All checks were successful
/ build-web (push) Successful in 1m13s
/ build-desktop (push) Successful in 11m50s
/ build-mobile (push) Successful in 16m27s
/ release (push) Successful in 24s

This commit is contained in:
Alois 2026-05-23 21:43:11 +02:00
commit a0e3e85467
6 changed files with 73 additions and 55 deletions

View file

@ -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(

View file

@ -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,