Skip to content

Commit

Permalink
fix(editing): restore default behaviour of message field keyboard nav…
Browse files Browse the repository at this point in the history
…igation (Ctrl+Up)

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed May 2, 2024
1 parent 2965d6c commit 5de4e5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/NewMessage/NewMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -976,6 +976,7 @@ export default {
return
}
event.preventDefault()
this.chatExtrasStore.initiateEditingMessage({
token: this.token,
id: lastMessageByCurrentUser.id,
Expand Down

0 comments on commit 5de4e5a

Please sign in to comment.