(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,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>();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue