From 033f565c0e4c0c7dd94b50d531bacc4c87861441 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Tue, 12 Nov 2019 12:40:17 +0200 Subject: [PATCH] Remove isFileUploadEnabled --- client/components/ChatInput.vue | 4 ++-- client/js/socket-events/configuration.js | 1 - client/js/store.js | 4 ---- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/client/components/ChatInput.vue b/client/components/ChatInput.vue index 1b8f41ef..2fc4e9dd 100644 --- a/client/components/ChatInput.vue +++ b/client/components/ChatInput.vue @@ -13,7 +13,7 @@ @keypress.enter.exact.prevent="onSubmit" /> { }); socket.once("configuration", function(data) { - store.commit("isFileUploadEnabled", data.fileUpload); store.commit("serverConfiguration", data); // 'theme' setting depends on serverConfiguration.themes so diff --git a/client/js/store.js b/client/js/store.js index 9b615c3b..db6e5ba7 100644 --- a/client/js/store.js +++ b/client/js/store.js @@ -25,7 +25,6 @@ const store = new Vuex.Store({ desktopNotificationState: detectDesktopNotificationState(), isAutoCompleting: false, isConnected: false, - isFileUploadEnabled: false, networks: [], pushNotificationState: "unsupported", serverConfiguration: null, @@ -56,9 +55,6 @@ const store = new Vuex.Store({ isConnected(state, payload) { state.isConnected = payload; }, - isFileUploadEnabled(state, isFileUploadEnabled) { - state.isFileUploadEnabled = isFileUploadEnabled; - }, networks(state, networks) { state.networks = networks; },