2021-10-01 18:58:36 +03:00
|
|
|
import QtQuick 2.13
|
|
|
|
|
2021-10-15 11:00:45 +03:00
|
|
|
import "../Profile/stores" as ProfileStores
|
|
|
|
|
|
|
|
|
2021-10-01 18:58:36 +03:00
|
|
|
QtObject {
|
|
|
|
id: root
|
2021-10-15 11:00:45 +03:00
|
|
|
|
|
|
|
readonly property ProfileStores.RootStore profileStore: ProfileStores.RootStore {}
|
|
|
|
|
2021-11-22 12:08:09 +01:00
|
|
|
property var mainModuleInst: mainModule
|
|
|
|
property var profileModuleInst: profileModule
|
2021-12-20 13:21:21 -05:00
|
|
|
property var aboutModuleInst: aboutModule
|
2021-11-22 12:08:09 +01:00
|
|
|
|
2021-12-13 15:24:21 +01:00
|
|
|
// Not Refactored Yet
|
|
|
|
// property var chatsModelInst: chatsModel
|
|
|
|
// Not Refactored Yet
|
|
|
|
// property var walletModelInst: walletModel
|
2021-11-22 12:08:09 +01:00
|
|
|
property var userProfileInst: userProfile
|
2021-11-04 14:55:21 -04:00
|
|
|
|
|
|
|
property var accounts: walletSectionAccounts.model
|
|
|
|
property var currentAccount: walletSectionCurrent
|
2021-12-13 15:24:21 +01:00
|
|
|
// Not Refactored Yet
|
|
|
|
// property var profileModelInst: profileModel
|
2021-11-22 12:08:09 +01:00
|
|
|
|
2021-11-04 14:55:21 -04:00
|
|
|
property var assets: walletSectionAccountTokens.model
|
2021-12-09 13:53:40 +01:00
|
|
|
// property MessageStore messageStore: MessageStore { }
|
2021-11-02 15:11:35 +01:00
|
|
|
|
2021-11-15 10:15:21 -05:00
|
|
|
property var contactsModuleInst: contactsModule
|
|
|
|
property var addedContacts: contactsModuleInst.model.addedContacts
|
|
|
|
|
2021-12-08 23:20:43 +02:00
|
|
|
property real volume: !!localAccountSensitiveSettings ? localAccountSensitiveSettings.volume : 0.0
|
|
|
|
property bool notificationSoundsEnabled: !!localAccountSensitiveSettings ? localAccountSensitiveSettings.notificationSoundsEnabled : false
|
2021-11-15 10:15:21 -05:00
|
|
|
|
2021-11-02 15:11:35 +01:00
|
|
|
function setCommunityMuted(communityId, checked) {
|
2021-12-13 15:24:21 +01:00
|
|
|
// Not Refactored Yet
|
|
|
|
// chatsModelInst.communities.setCommunityMuted(communityId, checked);
|
2021-11-02 15:11:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function exportCommunity() {
|
2021-12-13 15:24:21 +01:00
|
|
|
// Not Refactored Yet
|
|
|
|
// chatsModelInst.communities.exportCommunity();
|
2021-11-02 15:11:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function leaveCommunity(communityId) {
|
2021-12-13 15:24:21 +01:00
|
|
|
// Not Refactored Yet
|
|
|
|
// chatsModelInst.communities.leaveCommunity(communityId);
|
2021-11-02 15:11:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function createCommunity(communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY) {
|
2021-12-13 15:24:21 +01:00
|
|
|
// Not Refactored Yet
|
|
|
|
// chatsModelInst.communities.createCommunity(communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY);
|
2021-11-02 15:11:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function editCommunity(communityId, communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY) {
|
2021-12-13 15:24:21 +01:00
|
|
|
// Not Refactored Yet
|
|
|
|
// chatsModelInst.communities.editCommunity(communityId, communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY);
|
2021-11-02 15:11:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function copyToClipboard(text) {
|
2021-12-13 15:24:21 +01:00
|
|
|
// Not Refactored Yet
|
|
|
|
// chatsModelInst.copyToClipboard(text);
|
2021-11-02 15:11:35 +01:00
|
|
|
}
|
2021-10-01 18:58:36 +03:00
|
|
|
}
|