diff --git a/client/js/router.ts b/client/js/router.ts index 2a29963e..716a7859 100644 --- a/client/js/router.ts +++ b/client/js/router.ts @@ -123,7 +123,7 @@ router.beforeEach((to, from, next) => { } // Disallow navigating to invalid networks - if (to.name === "NetworkEdit" && !store.getters.findNetwork(to.params.uuid)) { + if (to.name === "NetworkEdit" && !store.getters.findNetwork(String(to.params.uuid))) { next(false); return; } @@ -156,7 +156,7 @@ router.afterEach((to) => { const channel = store.state.activeChannel.channel; if (to.name !== "RoutedChat") { - store.commit("activeChannel", null); + store.commit("activeChannel", undefined); } // When switching out of a channel, mark everything as read diff --git a/src/plugins/messageStorage/sqlite.ts b/src/plugins/messageStorage/sqlite.ts index 518533d0..53988fcc 100644 --- a/src/plugins/messageStorage/sqlite.ts +++ b/src/plugins/messageStorage/sqlite.ts @@ -48,6 +48,9 @@ class SqliteMessageStorage implements ISqliteMessageStorage { const logsPath = Config.getUserLogsPath(); const sqlitePath = path.join(logsPath, `${this.client.name}.sqlite3`); + log.info("Logs path", logsPath); + log.info("Sqlite path", sqlitePath); + try { fs.mkdirSync(logsPath, {recursive: true}); } catch (e: any) {