mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 20:40:18 +00:00
d788d22aa0
This refactors the timeline module to follow the stores/views/panel/popups architecture. It extracts all usages of *Model context variables with store instance equivalents and replaces API calls on such model instances with store proxy APIs. Closes #3713
29 lines
604 B
QML
29 lines
604 B
QML
import QtQuick 2.13
|
|
import QtQuick.Dialogs 1.3
|
|
|
|
import utils 1.0
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
property var chatsModelInst: chatsModel
|
|
property var profileModelInst: profileModel
|
|
|
|
function setActiveChannelToTimeline() {
|
|
chatsModelInst.setActiveChannelToTimeline()
|
|
}
|
|
|
|
function getPlainTextFromRichText(text) {
|
|
return chatsModelInst.plainText(text)
|
|
}
|
|
|
|
function sendMessage(message, contentType) {
|
|
chatsModelInst.messageView.sendMessage(message, "", contentType, true)
|
|
}
|
|
|
|
function sendImage(url) {
|
|
chatsModelInst.sendImage(url, true)
|
|
}
|
|
|
|
}
|