status-desktop/ui/imports/shared/status/StatusSticker.qml
Sale Djenic e5a414a927 refactor(@desktop/chat-communities): qml part handles messages from refactored backend
- `chatType` added to `Constants` to group chat type related values
- `messageContentType` added to `Constants` to group message content type related
values
- `MessageStore` maintained per message list now
- added new `ChatContentView` component used to display chat/channel content
- components updated to display messages from the new backend
- `StatusChatToolBar` appropriately updated
- mute/unmute feature added to chat/channel list as well as to `StatusChatToolBar`
2022-02-01 11:41:22 +01:00

28 lines
645 B
QML

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