mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 22:06:25 +00:00
e5a414a927
- `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`
28 lines
645 B
QML
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) : ""
|
|
}
|
|
}
|
|
}
|