We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f72e7a commit c640219Copy full SHA for c640219
src/components/Sendbox.vue
@@ -79,6 +79,10 @@ export default {
79
await this.postFile(this.file)
80
return
81
}
82
+ if (this.composingMessage.trim() === '') {
83
+ // do not send empty messages
84
+ return
85
+ }
86
await this.$xmpp.sendMessage(this.activeChat, this.composingMessage, this.isRoom)
87
this.composingMessage = ''
88
} catch (error) {
0 commit comments