mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-13 07:45:39 +00:00
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.} =
|
proc setEditModeOnAndScrollToLastMessage*(self: View, pubkey: string) {.slot.} =
|
||||||
let lastMessage = self.model.getLastItemFrom(pubKey)
|
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.model.setEditModeOn(lastMessage.id)
|
||||||
self.jumpToMessage(lastMessage.id)
|
self.jumpToMessage(lastMessage.id)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user