status-desktop/ui/shared/status/StatusSticker.qml
Khushboo Mehta d8817a468e fix(@desktop/chat) Reply to image doest show image in reply box
Added component to show both an image/sticker in the reply area.
Moved some components from app to shared folder so that they can be reused

fixes #3272
2021-08-31 12:14:48 -04:00

27 lines
650 B
QML

import QtQuick 2.3
import "../../shared" as Shared
import "../../imports"
Loader {
property color color
property int contentType: -1
property string stickerData: sticker
property int imageHeight: 140
property int imageWidth: 140
signal loaded()
id: root
active: contentType === Constants.stickerType
sourceComponent: Component {
Shared.ImageLoader {
color: root.color
onLoaded: root.loaded()
width: imageWidth
height: this.visible ? imageHeight : 0
source: this.visible ? ("https://ipfs.infura.io/ipfs/" + stickerData) : ""
}
}
}