[contacts]: updated remove contact popup

Closes #10499
This commit is contained in:
Alexandra Betouni 2023-05-05 15:38:26 +03:00
parent edb4af0d1a
commit cd7ccd833d
1 changed files with 7 additions and 2 deletions

View File

@ -257,13 +257,18 @@ Pane {
ConfirmationDialog { ConfirmationDialog {
id: removeContactConfirmationDialog id: removeContactConfirmationDialog
header.title: qsTr("Remove contact '%1'").arg(d.mainDisplayName) header.title: qsTr("Remove '%1' as a contact").arg(d.mainDisplayName)
confirmationText: qsTr("This will remove the user as a contact. Please confirm.") confirmationText: qsTr("This will mean that you and '%1' will no longer be able to send direct messages to each other. You will need to send them a new Contact Request in order to message again. All previous direct messages between you and '%1' will be retained in read-only mode.").arg(d.mainDisplayName)
showCancelButton: true
cancelBtnType: ""
onConfirmButtonClicked: { onConfirmButtonClicked: {
root.contactsStore.removeContact(root.publicKey) root.contactsStore.removeContact(root.publicKey)
close() close()
d.reload() d.reload()
} }
onCancelButtonClicked: {
removeContactConfirmationDialog.close();
}
} }
ConfirmationDialog { ConfirmationDialog {