fix: use isActive instead of chatPanelOpen in ChatMessageView so messages load on /chat page
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user