fix anon user issues

This commit is contained in:
Henry Jameson 2022-08-15 21:03:27 +03:00
parent ebe095bd76
commit 96090ea98f
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export const defaultState = {
collapseNav: false collapseNav: false
}, },
collections: { collections: {
pinnedNavItems: ['home', 'dms', 'chats', 'about'] pinnedNavItems: ['home', 'dms', 'chats']
} }
}, },
// raw data // raw data
@ -262,7 +262,7 @@ export const mutations = {
const live = userData.storage const live = userData.storage
state.raw = live state.raw = live
let cache = state.cache let cache = state.cache
if (cache._user !== userData.fqn) { if (cache && cache._user !== userData.fqn) {
console.warn('cache belongs to another user! reinitializing local cache!') console.warn('cache belongs to another user! reinitializing local cache!')
cache = null cache = null
} }