2024-12-18 21:00:08 +01:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
|
|
|
import StatusQ 0.1
|
|
|
|
|
|
|
|
import Models 1.0
|
|
|
|
import Storybook 1.0
|
|
|
|
|
|
|
|
import shared.stores 1.0 as SharedStores
|
|
|
|
import AppLayouts.Profile.views 1.0
|
|
|
|
import AppLayouts.Profile.stores 1.0
|
|
|
|
import mainui.adaptors 1.0
|
|
|
|
|
|
|
|
Item {
|
|
|
|
ContactsView {
|
|
|
|
sectionTitle: "Contacts"
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.leftMargin: 64
|
|
|
|
anchors.topMargin: 16
|
|
|
|
contentWidth: 560
|
|
|
|
|
|
|
|
contactsStore: ContactsStore {
|
|
|
|
function joinPrivateChat(pubKey) {}
|
|
|
|
function acceptContactRequest(pubKey, contactRequestId) {}
|
|
|
|
function dismissContactRequest(pubKey, contactRequestId) {}
|
2025-01-13 10:08:34 +01:00
|
|
|
|
|
|
|
function resolveENS(value) {}
|
|
|
|
|
|
|
|
signal resolvedENS(string resolvedPubKey, string resolvedAddress,
|
|
|
|
string uuid)
|
2024-12-18 21:00:08 +01:00
|
|
|
}
|
|
|
|
utilsStore: SharedStores.UtilsStore {
|
|
|
|
function getEmojiHash(publicKey) {
|
|
|
|
if (publicKey === "")
|
|
|
|
return ""
|
|
|
|
|
2025-01-13 10:08:34 +01:00
|
|
|
return JSON.stringify(
|
|
|
|
["👨🏻🍼", "🏃🏿♂️", "🌇", "🤶🏿", "🏮","🤷🏻♂️", "🤦🏻",
|
|
|
|
"📣", "🤎", "👷🏽", "😺", "🥞", "🔃", "🧝🏽♂️"])
|
2024-12-18 21:00:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutualContactsModel: adaptor.mutualContacts
|
|
|
|
blockedContactsModel: adaptor.blockedContacts
|
|
|
|
pendingContactsModel: adaptor.pendingContacts
|
2025-01-14 10:18:31 -05:00
|
|
|
dismissedReceivedRequestContactsModel: adaptor.dismissedReceivedRequestContactsModel
|
2024-12-18 21:00:08 +01:00
|
|
|
pendingReceivedContactsCount: adaptor.pendingReceivedRequestContacts.count
|
|
|
|
}
|
|
|
|
|
|
|
|
ContactsModelAdaptor {
|
|
|
|
id: adaptor
|
|
|
|
|
2025-01-13 10:08:34 +01:00
|
|
|
allContacts: UsersModel {}
|
2024-12-18 21:00:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// category: Views
|
|
|
|
// status: good
|