more leftovers
This commit is contained in:
parent
2467e56556
commit
9fe49c6db1
2 changed files with 1 additions and 5 deletions
|
|
@ -38,10 +38,6 @@ export const useInstanceCapabilitiesStore = defineStore(
|
|||
}
|
||||
|
||||
this[capability] = value
|
||||
|
||||
if (capability === 'shoutAvailable') {
|
||||
window.vuex.dispatch('initializeSocket')
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -670,7 +670,7 @@ export const useUsersStore = defineStore('users', {
|
|||
useSyncConfigStore().setFlag({ flag: 'configMigration', value: 0 })
|
||||
/**/
|
||||
|
||||
if (user.token) {
|
||||
if (user.token && useInstanceCapabilitiesStore().shoutAvailable) {
|
||||
// Shoutbox
|
||||
useShoutStore().initializeSocket()
|
||||
useShoutStore().initializeShout()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue