mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 09:46:38 +00:00
a6e6546a08
* chore(ContactPanel): add tooltips to contact panel buttons * feat(contacts): add a tab for dismissed contacts and a button to undo Fixes #16844 Adds a tab in the Messaging>Contacts page that shows the dismissed contact requests. it has a button to undo the rejection. That is simply a call to accept the old contact request, which then makes the two users mutual contacts
58 lines
1.7 KiB
QML
58 lines
1.7 KiB
QML
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) {}
|
|
|
|
function resolveENS(value) {}
|
|
|
|
signal resolvedENS(string resolvedPubKey, string resolvedAddress,
|
|
string uuid)
|
|
}
|
|
utilsStore: SharedStores.UtilsStore {
|
|
function getEmojiHash(publicKey) {
|
|
if (publicKey === "")
|
|
return ""
|
|
|
|
return JSON.stringify(
|
|
["👨🏻🍼", "🏃🏿♂️", "🌇", "🤶🏿", "🏮","🤷🏻♂️", "🤦🏻",
|
|
"📣", "🤎", "👷🏽", "😺", "🥞", "🔃", "🧝🏽♂️"])
|
|
}
|
|
}
|
|
|
|
mutualContactsModel: adaptor.mutualContacts
|
|
blockedContactsModel: adaptor.blockedContacts
|
|
pendingContactsModel: adaptor.pendingContacts
|
|
dismissedReceivedRequestContactsModel: adaptor.dismissedReceivedRequestContactsModel
|
|
pendingReceivedContactsCount: adaptor.pendingReceivedRequestContacts.count
|
|
}
|
|
|
|
ContactsModelAdaptor {
|
|
id: adaptor
|
|
|
|
allContacts: UsersModel {}
|
|
}
|
|
}
|
|
|
|
// category: Views
|
|
// status: good
|