diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-04-28 19:02:14 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-04-29 10:47:21 +0300 |
commit | b9632cf7a380e5d86391b780bcfb89f11f8ff51e (patch) | |
tree | 3aa19901f48a7469ffc732b707c994ceda2dbaf8 /src/components/ChatView.vue | |
parent | 0bb284b5eeaf72ccabdbf9a9377d3e7d283b8747 (diff) |
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 <vincent@nextcloud.com>
Diffstat (limited to 'src/components/ChatView.vue')
-rw-r--r-- | src/components/ChatView.vue | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/ChatView.vue b/src/components/ChatView.vue index 105fafa88..2a76975db 100644 --- a/src/components/ChatView.vue +++ b/src/components/ChatView.vue @@ -59,7 +59,6 @@ <script> import MessagesList from './MessagesList/MessagesList' import NewMessageForm from './NewMessageForm/NewMessageForm' -import { processFiles } from '../utils/fileUpload' import { CONVERSATION } from '../constants' export default { @@ -140,7 +139,7 @@ export default { // Create a unique id for the upload operation const uploadId = new Date().getTime() // Uploads and shares the files - processFiles(files, this.token, uploadId) + this.$store.dispatch('initialiseUpload', { files, token: this.token, uploadId }) }, setScrollStatus(payload) { |