default have chat enabled

This commit is contained in:
Grant 2024-05-23 15:07:56 -06:00
parent 8801efc9a3
commit 099713dd50
1 changed files with 5 additions and 1 deletions

View File

@ -35,7 +35,11 @@ export const AppContext = ({ children }: PropsWithChildren) => {
useEffect(() => { useEffect(() => {
function loadSettings() { function loadSettings() {
setLoadChat(localStorage.getItem("matrix.enable") === "true"); setLoadChat(
localStorage.getItem("matrix.enable") === null
? true
: localStorage.getItem("matrix.enable") === "true"
);
} }
function handleConfig(config: ClientConfig) { function handleConfig(config: ClientConfig) {