From baa7bd161d0a9e8a36f8b80c6170df5834049c75 Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Fri, 31 Mar 2023 17:18:48 +0300 Subject: [PATCH] fix(edit-message): Blocks edit function for image messages Fixes: #10072 --- .../modules/main/chat_section/chat_content/messages/view.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modules/main/chat_section/chat_content/messages/view.nim b/src/app/modules/main/chat_section/chat_content/messages/view.nim index cc944e5b94..1086611161 100644 --- a/src/app/modules/main/chat_section/chat_content/messages/view.nim +++ b/src/app/modules/main/chat_section/chat_content/messages/view.nim @@ -149,7 +149,7 @@ QtObject: proc setEditModeOnAndScrollToLastMessage*(self: View, pubkey: string) {.slot.} = let lastMessage = self.model.getLastItemFrom(pubKey) - if lastMessage != nil and lastMessage.id != "": + if lastMessage != nil and lastMessage.id != "" and lastMessage.contentType != ContentType.Image: self.model.setEditModeOn(lastMessage.id) self.jumpToMessage(lastMessage.id)