From b9632cf7a380e5d86391b780bcfb89f11f8ff51e Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 28 Apr 2021 18:02:14 +0200 Subject: Decuple fileUpload service from the global store Moved the logic of "processFiles" into the existing "initialiseUpload" action of the fileUploadStore Signed-off-by: Vincent Petry --- src/components/NewMessageForm/NewMessageForm.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/components/NewMessageForm') diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue index 548740494..dad481a64 100644 --- a/src/components/NewMessageForm/NewMessageForm.vue +++ b/src/components/NewMessageForm/NewMessageForm.vue @@ -125,7 +125,6 @@ import ActionButton from '@nextcloud/vue/dist/Components/ActionButton' import EmojiPicker from '@nextcloud/vue/dist/Components/EmojiPicker' import { EventBus } from '../../services/EventBus' import { shareFile } from '../../services/filesSharingServices' -import { processFiles } from '../../utils/fileUpload' import { CONVERSATION } from '../../constants' import createTemporaryMessage from '../../utils/temporaryMessage' import EmoticonOutline from 'vue-material-design-icons/EmoticonOutline' @@ -457,7 +456,7 @@ export default { // Create a unique id for the upload operation const uploadId = new Date().getTime() // Uploads and shares the files - await processFiles(files, this.token, uploadId, rename) + this.$store.dispatch('initialiseUpload', { files, token: this.token, uploadId, rename }) }, /** -- cgit v1.2.3