From 64693f5db847474e60ae7dcb16044fbdf9e82ffc Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Mon, 8 Jul 2024 19:46:55 +0200 Subject: [PATCH] Update apps/browser/src/_locales/en/messages.json Co-authored-by: Danielle Flinn <43477473+danielleflinn@users.noreply.github.com> --- apps/browser/src/_locales/en/messages.json | 2 +- .../src/background/nativeMessaging.background.ts | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/apps/browser/src/_locales/en/messages.json b/apps/browser/src/_locales/en/messages.json index eba92e2aa4..32052fb812 100644 --- a/apps/browser/src/_locales/en/messages.json +++ b/apps/browser/src/_locales/en/messages.json @@ -1957,7 +1957,7 @@ "message": "Account not found in desktop app" }, "biometricsNoUserDesc": { - "message": "The user you are trying to unlock in the browser extension is not signed in to the desktop application. Please sign in to the desktop application and try again." + "message": "The account you are unlocking is not signed in on the desktop app. Please sign in to the desktop app and try again." }, "biometricsNoClientKeyHalfTitle": { "message": "Password or PIN required" diff --git a/apps/browser/src/background/nativeMessaging.background.ts b/apps/browser/src/background/nativeMessaging.background.ts index 5f268b2803..c853409149 100644 --- a/apps/browser/src/background/nativeMessaging.background.ts +++ b/apps/browser/src/background/nativeMessaging.background.ts @@ -358,14 +358,6 @@ export class NativeMessagingBackground { break; } else if (message.response === "canceled") { break; - } else { - this.messagingService.send("showDialog", { - title: { key: "biometricsBrokenIPCMessage" }, - content: { key: "biometricsBrokenIPCMessageDesc" }, - acceptButtonText: { key: "ok" }, - cancelButtonText: null, - type: "danger", - }); } // Check for initial setup of biometric unlock @@ -432,6 +424,13 @@ export class NativeMessagingBackground { } default: this.logService.error("NativeMessage, got unknown command: " + message.command); + this.messagingService.send("showDialog", { + title: { key: "biometricsBrokenIPCMessage" }, + content: { key: "biometricsBrokenIPCMessageDesc" }, + acceptButtonText: { key: "ok" }, + cancelButtonText: null, + type: "danger", + }); break; }