Skip to content

Commit 74052d8

Browse files
fix: typescript around isOnline
1 parent 92decc8 commit 74052d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package/src/components/Chat/hooks/useAppSettings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const useAppSettings = <
88
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
99
>(
1010
client: StreamChat<StreamChatGenerics>,
11-
isOnline: boolean,
11+
isOnline: boolean | null,
1212
): AppSettingsAPIResponse | null => {
1313
const [appSettings, setAppSettings] = useState<AppSettingsAPIResponse | null>(null);
1414
const isMounted = useRef(true);

package/src/contexts/chatContext/ChatContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export type ChatContextValue<
3636
connectionRecovering: boolean;
3737
enableOfflineSupport: boolean;
3838
ImageComponent: React.ComponentType<ImageProps>;
39-
isOnline: boolean;
39+
isOnline: boolean | null;
4040
mutedUsers: Mute<StreamChatGenerics>[];
4141
/**
4242
* @param newChannel Channel to set as active.

0 commit comments

Comments
 (0)