diff options
| author | Sergey Suprunenko <suprunenko.s@gmail.com> | 2019-08-17 08:18:42 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2019-08-17 08:18:42 +0000 |
| commit | d74f6ed6eaf3eeef263d9bf7ec7c73bd4298cced (patch) | |
| tree | b34f5358d3e87a845c78b1206c8b42b43b4967dd /src/boot/after_store.js | |
| parent | 58713e342d96e6ed0d22c107ab2279e51c2bf959 (diff) | |
Initialize chat only if user is logged in and it wasn't initialized before
Diffstat (limited to 'src/boot/after_store.js')
| -rw-r--r-- | src/boot/after_store.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js index 3799359f..5a94194c 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -109,12 +109,6 @@ const setSettings = async ({ apiConfig, staticConfig, store }) => { copyInstanceOption('noAttachmentLinks') copyInstanceOption('showFeaturesPanel') - if ((config.chatDisabled)) { - store.dispatch('disableChat') - } else { - store.dispatch('initializeSocket') - } - return store.dispatch('setTheme', config['theme']) } |
