diff --git a/CHANGELOG.md b/CHANGELOG.md index faf82b9386..c4d3c699b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### Changed ### Fixed +- Fix account import in BACKUP2 format #4075 diff --git a/src/renderer/hooks/useProcessQr.ts b/src/renderer/hooks/useProcessQr.ts index 31fd9af65b..a92afa1c79 100644 --- a/src/renderer/hooks/useProcessQr.ts +++ b/src/renderer/hooks/useProcessQr.ts @@ -24,6 +24,7 @@ const ALLOWED_QR_CODES_ON_WELCOME_SCREEN: T.Qr['kind'][] = [ 'askVerifyContact', 'askVerifyGroup', 'backup', + 'backup2', 'login', 'text', 'url', @@ -239,7 +240,7 @@ export default function useProcessQR() { } // DCBACKUP: Ask the user if they want to set up a new device - if (qr.kind === 'backup') { + if (qr.kind === 'backup' || qr.kind === 'backup2') { if (isLoggedIn) { await openAlertDialog({ message: tx('Please logout first'),