Only connect to chat when authenticating in the first place
To avoid duplication of the connection, the chat socket is destroyed upon logging out.
This commit is contained in:
parent
a67881b096
commit
e618c6ffb0
4 changed files with 15 additions and 5 deletions
|
@ -89,10 +89,8 @@ const afterStoreSetup = ({ store, i18n }) => {
|
|||
copyInstanceOption('noAttachmentLinks')
|
||||
copyInstanceOption('showFeaturesPanel')
|
||||
|
||||
if ((config.chatDisabled)) {
|
||||
if (config.chatDisabled) {
|
||||
store.dispatch('disableChat')
|
||||
} else {
|
||||
store.dispatch('initializeSocket')
|
||||
}
|
||||
|
||||
return store.dispatch('setTheme', config['theme'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue