fix: Cannot download uploaded or embed images in private chat

Download an image to a local folder was not working as
clickMessage function was called from root. and root has
no such function. Switched to use clickMessage via dynamic
scoping.

TODO: remove dynamic scoping

Closes #4143
This commit is contained in:
Alexandra Betouni 2022-01-03 22:14:26 +02:00 committed by Alexandra Betouni
parent a85ee8581a
commit 6d0d00a50a
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ Item {
messageContextMenu.parent = root
messageContextMenu.setXPosition = function() { return (mouse.x)}
messageContextMenu.setYPosition = function() { return (mouse.y)}
root.clickMessage(false, false, true, image, false, true, false, true, imageSource)
clickMessage(false, false, true, image, false, true, false, true, imageSource)
}
}
container: root.container