Jonathan Rainville 1e7c648300 feat: contact verification request and trust status
feat: contact verification

fix: add remove identity verified btn

fix: add toast message

feat: received verification request model


feat: finish identity verification flow

Fixes #4784
2022-07-06 10:43:33 -04:00

56 lines
1.6 KiB
QML

import QtQuick 2.13
import utils 1.0
QtObject {
id: root
property var privacyModule
property var syncModule
property int profilePicturesVisibility: privacyModule.profilePicturesVisibility
property int profilePicturesShowTo: privacyModule.profilePicturesShowTo
property var mailservers: syncModule.model
property bool useMailservers: syncModule.useMailservers
function toggleUseMailservers(value) {
root.syncModule.useMailservers = value
}
// Module Properties
property bool automaticMailserverSelection: syncModule.automaticSelection
property string activeMailserver: syncModule.activeMailserver
function getMailserverNameForNodeAddress(nodeAddress) {
return root.syncModule.getMailserverNameForNodeAddress(nodeAddress)
}
function setActiveMailserver(nodeAddress) {
root.syncModule.setActiveMailserver(nodeAddress)
}
function saveNewMailserver(name, nodeAddress) {
root.syncModule.saveNewMailserver(name, nodeAddress)
}
function enableAutomaticMailserverSelection(checked) {
if (automaticMailserverSelection === checked) {
return
}
root.syncModule.enableAutomaticSelection(checked)
}
function getLinkPreviewWhitelist() {
return root.privacyModule.getLinkPreviewWhitelist()
}
function setProfilePicturesVisibility(value) {
return root.privacyModule.setProfilePicturesVisibility(value)
}
function setProfilePicturesShowTo(value) {
return root.privacyModule.setProfilePicturesShowTo(value)
}
}