(fix): tooltips in fullscreen mode
All checks were successful
/ deploy (push) Successful in 14m47s

(feat): adjust to new calls array from ident res
This commit is contained in:
Alois 2026-05-09 21:33:21 +02:00
commit 8e5ed8217d
6 changed files with 27 additions and 11 deletions

View file

@ -7,18 +7,19 @@ import {
useEffect,
} from "react";
import { useStorage } from "./context";
import type { Contacts, Communities } from "@tensamin/shared/data";
import type { Contacts, Communities, Calls } from "@tensamin/shared/data";
interface SessionContextType {
contacts: Contacts;
communities: Communities;
calls: Calls;
moveUserIdToTop: (userId: number) => void;
}
const SessionContext = createContext<SessionContextType | undefined>(undefined);
export default function SessionProvider({ children }: { children: ReactNode }) {
const { freshContacts, freshCommunities } = useTTP();
const { freshContacts, freshCommunities, freshCalls } = useTTP();
const { load, save } = useStorage();
const [contacts, setContacts] = useState<Contacts>([]);
const [communities, setCommunities] = useState<Communities>([]);
@ -69,7 +70,9 @@ export default function SessionProvider({ children }: { children: ReactNode }) {
};
return (
<SessionContext.Provider value={{ contacts, communities, moveUserIdToTop }}>
<SessionContext.Provider
value={{ contacts, communities, calls: freshCalls, moveUserIdToTop }}
>
{children}
</SessionContext.Provider>
);