When "always allow verifying devices" option is enabled, show a less confusing message in the devices page

This commit is contained in:
Tobias Fella
2026-01-15 14:40:50 +01:00
committed by Joshua Goins
parent c15860cac3
commit 716ee2e494

View File

@@ -36,9 +36,10 @@ FormCard.FormCardPage {
devicesModel: root.devicesModel
FormCard.FormButtonDelegate {
icon.name: "security-low"
icon.name: !root.connection.isVerifiedSession ? "security-low" : "security-high"
text: i18nc("@action:button", "Verify This Device")
description: i18nc("@info:description", "This device is marked as insecure until it's verified by another device. It's recommended to verify as soon as possible.")
description: !root.connection.isVerifiedSession ? i18nc("@info:description", "This device is marked as insecure until it's verified by another device. It's recommended to verify as soon as possible.")
: i18nc("@info:description", "This device is marked as secure.")
visible: !root.connection.isVerifiedSession || NeoChatConfig.alwaysVerifyDevice
onClicked: {
root.connection.startSelfVerification();