diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-01-12 13:32:12 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-01-12 15:00:59 +0100 |
commit | 81762119b9285956d5c71ba7262b4ed367ac8e7e (patch) | |
tree | f2977f4bc78887a65583ff946f514eb24188dea9 /resources | |
parent | Update QtQuick versions to match Qt 5.10 (diff) | |
download | nheko-81762119b9285956d5c71ba7262b4ed367ac8e7e.tar.xz |
Make device verification request dialogs easier to understand.
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/device-verification/NewVerificationRequest.qml | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/resources/qml/device-verification/NewVerificationRequest.qml b/resources/qml/device-verification/NewVerificationRequest.qml index 9e492ca4..fae63371 100644 --- a/resources/qml/device-verification/NewVerificationRequest.qml +++ b/resources/qml/device-verification/NewVerificationRequest.qml @@ -4,7 +4,7 @@ import QtQuick.Layouts 1.10 import im.nheko 1.0 Pane { - property string title: flow.sender ? qsTr("Send Device Verification Request") : qsTr("Recieved Device Verification Request") + property string title: flow.sender ? qsTr("Send Verification Request") : qsTr("Recieved Verification Request") ColumnLayout { spacing: 16 @@ -14,7 +14,23 @@ Pane { Layout.fillHeight: true Layout.fillWidth: true wrapMode: Text.Wrap - text: flow.sender ? qsTr("To ensure that no malicious user can eavesdrop on your encrypted communications, you can verify this device.") : qsTr("The device was requested to be verified") + text: { + if (flow.sender) { + if (flow.isSelfVerification) + return qsTr("To allow other users to see, which of your devices actually belong to you, you can verify them. This also allows key backup to work automatically. Verify %1 now?").arg(flow.deviceId); + else + return qsTr("To ensure that no malicious user can eavesdrop on your encrypted communications you can verify the other party."); + } else { + // Self verification + + if (!flow.isSelfVerification && flow.isDeviceVerification) + return qsTr("%1 has requested to verify their device %2.").arg(flow.userId).arg(flow.deviceId); + else if (!flow.isSelfVerification && !flow.isDeviceVerification) + return qsTr("%1 using the device %2 has requested to be verified.").arg(flow.userId).arg(flow.deviceId); + else + return qsTr("Your devices (%1) has requested to be verified.").arg(flow.deviceId); + } + } color: colors.text verticalAlignment: Text.AlignVCenter } |