(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,5 +1,5 @@
import { useUser, type User } from "@tensamin/user/context";
import { useCall } from "../store";
import { useCall, getRoom } from "../store";
import { useEffect, useState } from "react";
import { useStorage } from "@tensamin/storage/context";
import {
@ -14,7 +14,7 @@ import {
export default function TopBar() {
const { get } = useUser();
const { load } = useStorage();
const room = useCall((state) => state.room);
const room = getRoom();
const screenRef = useCall((state) => state.screenRef);
const [portalContainer, setPortalContainer] = useState<HTMLElement>();