fix: use isActive instead of chatPanelOpen in ChatMessageView so messages load on /chat page

This commit is contained in:
Matthias Hochmeister
2026-03-28 10:44:44 +01:00
parent 60e1329815
commit 992a184784
2 changed files with 7 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ interface ChatContextType {
selectRoom: (token: string | null) => void;
connected: boolean;
loginName: string | null;
isActive: boolean;
}
const ChatContext = createContext<ChatContextType | undefined>(undefined);
@@ -119,6 +120,7 @@ export const ChatProvider: React.FC<ChatProviderProps> = ({ children }) => {
selectRoom,
connected,
loginName,
isActive,
};
return <ChatContext.Provider value={value}>{children}</ChatContext.Provider>;