diff options
Diffstat (limited to 'src/components/NewMessage/NewMessage.vue')
-rw-r--r-- | src/components/NewMessage/NewMessage.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/NewMessage/NewMessage.vue b/src/components/NewMessage/NewMessage.vue index 63be90c04..5eebf9339 100644 --- a/src/components/NewMessage/NewMessage.vue +++ b/src/components/NewMessage/NewMessage.vue @@ -962,8 +962,8 @@ export default { this.blurInput() }, - handleEditLastMessage() { - if (!canEditMessage || this.upload || this.broadcast || this.isRecordingAudio) { + handleEditLastMessage(event) { + if (!canEditMessage || this.text || this.upload || this.broadcast || this.isRecordingAudio) { return } const lastMessageByCurrentUser = this.$store.getters.messagesList(this.token).findLast(message => { @@ -976,6 +976,7 @@ export default { return } + event.preventDefault() this.chatExtrasStore.initiateEditingMessage({ token: this.token, id: lastMessageByCurrentUser.id, |