(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,6 +1,6 @@
import { VideoTrack, useParticipantTracks } from "@livekit/components-react";
import { TrackPublication } from "livekit-client";
import { useCall } from "../store";
import { getRoom } from "../store";
import { cn } from "@tensamin/ui";
import { Loader2 } from "lucide-react";
@ -17,7 +17,7 @@ export default function VideoViewer({
publication: TrackPublication;
participantId: string;
}) {
const room = useCall((state) => state.room);
const room = getRoom();
const tracks = useParticipantTracks([publication.source], {
participantIdentity: participantId,
room,