mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-12 15:24:39 +00:00
0e5c566dcd
Fixes #10523 The problem was that the CreateChatView now uses an isolated Chat RootStore, since we can't be sure if the personal chat section will be loaded yet. To fix that, I created a new store that is only for storing the properties needed for that new chat. That way we are sure that it is created and shared to necessary components.
23 lines
732 B
QML
23 lines
732 B
QML
import QtQuick 2.15
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
property string createChatInitMessage: ""
|
|
property var createChatFileUrls: []
|
|
property bool createChatStartSendTransactionProcess: false
|
|
property bool createChatStartReceiveTransactionProcess: false
|
|
property string createChatStickerHashId: ""
|
|
property string createChatStickerPackId: ""
|
|
property string createChatStickerUrl: ""
|
|
|
|
function resetProperties() {
|
|
root.createChatInitMessage = "";
|
|
root.createChatFileUrls = [];
|
|
root.createChatStartSendTransactionProcess = false;
|
|
root.createChatStartReceiveTransactionProcess = false;
|
|
root.createChatStickerHashId = "";
|
|
root.createChatStickerPackId = "";
|
|
}
|
|
}
|