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/components/features_panel/features_panel.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/components/features_panel/features_panel.js') diff --git a/src/components/features_panel/features_panel.js b/src/components/features_panel/features_panel.js index 5f0b7b25..5f80a079 100644 --- a/src/components/features_panel/features_panel.js +++ b/src/components/features_panel/features_panel.js @@ -1,8 +1,6 @@ const FeaturesPanel = { computed: { - chat: function () { - return this.$store.state.instance.chatAvailable && (!this.$store.state.chatDisabled) - }, + chat: function () { return this.$store.state.instance.chatAvailable }, gopher: function () { return this.$store.state.instance.gopherAvailable }, whoToFollow: function () { return this.$store.state.instance.suggestionsEnabled }, mediaProxy: function () { return this.$store.state.instance.mediaProxyAvailable }, -- cgit v1.2.3-70-g09d2