From a68548813f670ac82f33e5f90fd899c9ea20af3c Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Tue, 19 Nov 2024 21:02:18 -0500 Subject: [PATCH] change string used for shield message --- playwright/e2e/crypto/event-shields.spec.ts | 2 +- src/components/views/rooms/EventTile.tsx | 2 +- src/i18n/strings/en_EN.json | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/playwright/e2e/crypto/event-shields.spec.ts b/playwright/e2e/crypto/event-shields.spec.ts index f7cd83c6891..c6382f1d726 100644 --- a/playwright/e2e/crypto/event-shields.spec.ts +++ b/playwright/e2e/crypto/event-shields.spec.ts @@ -330,7 +330,7 @@ test.describe("Cryptography", function () { await expect(lastE2eIcon).toHaveClass(/mx_EventTile_e2eIcon_warning/); await lastE2eIcon.focus(); await expect(await app.getTooltipForElement(lastE2eIcon)).toContainText( - "Encrypted by a previously-verified user who is no longer verified.", + "Sender's verified identity has changed", ); }); }); diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index 19f80d81730..78d0ca5b28f 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -763,7 +763,7 @@ export class UnwrappedEventTile extends React.Component break; case EventShieldReason.VERIFICATION_VIOLATION: - shieldReasonMessage = _t("encryption|event_shield_reason_verification_violation"); + shieldReasonMessage = _t("timeline|decryption_failure|sender_identity_previously_verified"); break; } diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 8fa4960ce88..4a524db97cd 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -887,7 +887,6 @@ "event_shield_reason_unknown_device": "Encrypted by an unknown or deleted device.", "event_shield_reason_unsigned_device": "Encrypted by a device not verified by its owner.", "event_shield_reason_unverified_identity": "Encrypted by an unverified user.", - "event_shield_reason_verification_violation": "Encrypted by a previously-verified user who is no longer verified.", "export_unsupported": "Your browser does not support the required cryptography extensions", "import_invalid_keyfile": "Not a valid %(brand)s keyfile", "import_invalid_passphrase": "Authentication check failed: incorrect password?",