From 099713dd50004907d75b1febb081b9cdf94f42c4 Mon Sep 17 00:00:00 2001 From: Grant Date: Thu, 23 May 2024 15:07:56 -0600 Subject: [PATCH] default have chat enabled --- packages/client/src/contexts/AppContext.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/client/src/contexts/AppContext.tsx b/packages/client/src/contexts/AppContext.tsx index e14b9c5..030f51e 100644 --- a/packages/client/src/contexts/AppContext.tsx +++ b/packages/client/src/contexts/AppContext.tsx @@ -35,7 +35,11 @@ export const AppContext = ({ children }: PropsWithChildren) => { useEffect(() => { function loadSettings() { - setLoadChat(localStorage.getItem("matrix.enable") === "true"); + setLoadChat( + localStorage.getItem("matrix.enable") === null + ? true + : localStorage.getItem("matrix.enable") === "true" + ); } function handleConfig(config: ClientConfig) {