fix(edit-message): Blocks edit function for image messages
Fixes: #10072
This commit is contained in:
parent
0302b7972e
commit
baa7bd161d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue