fix(edit-message): Blocks edit function for image messages

Fixes: #10072
This commit is contained in:
Boris Melnik 2023-03-31 17:18:48 +03:00
parent 0302b7972e
commit baa7bd161d
1 changed files with 1 additions and 1 deletions

View File

@ -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)