From d74f6ed6eaf3eeef263d9bf7ec7c73bd4298cced Mon Sep 17 00:00:00 2001 From: Sergey Suprunenko Date: Sat, 17 Aug 2019 08:18:42 +0000 Subject: Initialize chat only if user is logged in and it wasn't initialized before --- src/boot/after_store.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/boot') 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']) } -- cgit v1.2.3-70-g09d2