aboutsummaryrefslogtreecommitdiff
path: root/src/components/features_panel/features_panel.js
diff options
context:
space:
mode:
authorSergey Suprunenko <suprunenko.s@gmail.com>2019-08-17 08:18:42 +0000
committerShpuld Shpludson <shp@cock.li>2019-08-17 08:18:42 +0000
commitd74f6ed6eaf3eeef263d9bf7ec7c73bd4298cced (patch)
treeb34f5358d3e87a845c78b1206c8b42b43b4967dd /src/components/features_panel/features_panel.js
parent58713e342d96e6ed0d22c107ab2279e51c2bf959 (diff)
Initialize chat only if user is logged in and it wasn't initialized before
Diffstat (limited to 'src/components/features_panel/features_panel.js')
-rw-r--r--src/components/features_panel/features_panel.js4
1 files changed, 1 insertions, 3 deletions
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 },