2021-10-01 15:58:36 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: root
|
|
|
|
property var chatsModelInst: chatsModel
|
|
|
|
property var walletModelInst: walletModel
|
|
|
|
property var profileModelInst: profileModel
|
|
|
|
property MessageStore messageStore: MessageStore { }
|
2021-11-02 14:11:35 +00:00
|
|
|
|
|
|
|
function setCommunityMuted(communityId, checked) {
|
|
|
|
chatsModelInst.communities.setCommunityMuted(communityId, checked);
|
|
|
|
}
|
|
|
|
|
|
|
|
function exportCommunity() {
|
|
|
|
chatsModelInst.communities.exportCommunity();
|
|
|
|
}
|
|
|
|
|
|
|
|
function leaveCommunity(communityId) {
|
|
|
|
chatsModelInst.communities.leaveCommunity(communityId);
|
|
|
|
}
|
|
|
|
|
|
|
|
function createCommunity(communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY) {
|
|
|
|
chatsModelInst.communities.createCommunity(communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY);
|
|
|
|
}
|
|
|
|
|
|
|
|
function editCommunity(communityId, communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY) {
|
|
|
|
chatsModelInst.communities.editCommunity(communityId, communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY);
|
|
|
|
}
|
|
|
|
|
|
|
|
function copyToClipboard(text) {
|
|
|
|
chatsModelInst.copyToClipboard(text);
|
|
|
|
}
|
2021-10-01 15:58:36 +00:00
|
|
|
}
|