diff options
| author | slice <ryaneft@gmail.com> | 2019-03-10 11:23:27 -0700 |
|---|---|---|
| committer | slice <ryaneft@gmail.com> | 2019-03-10 11:25:36 -0700 |
| commit | e618c6ffb0b974156b89f3e54737e738e94b12b3 (patch) | |
| tree | 5197a0bc55ac81cad80e05686bb664c644da9109 /src/boot/after_store.js | |
| parent | a67881b096dc4e49db804b7267c3bf49ff78bca6 (diff) | |
Only connect to chat when authenticating in the first place
To avoid duplication of the connection, the chat socket is destroyed
upon logging out.
Diffstat (limited to 'src/boot/after_store.js')
| -rw-r--r-- | src/boot/after_store.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js index a8e2bf35..cd88c188 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -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']) |
