Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Nov 23, 2023
1 parent 4bbbf2e commit 820d4a5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/NewMessage/NewMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,14 @@ export default {
}

if (this.upload) {
this.$emit('sent', this.text)
this.$store.dispatch('setCurrentMessageInput', { token: this.token, text: '' })
return

if (!this.$store.getters.getInitialisedUploads(this.$store.getters.currentUploadId).length) {
this.$emit('failure')
} else {
this.$emit('sent', this.text)
return
}
}

if (this.hasText) {
Expand Down

0 comments on commit 820d4a5

Please sign in to comment.