From d4b5ffd0d6e864614bf4aeea4e63e07358ca9a37 Mon Sep 17 00:00:00 2001 From: Omar Hatem Date: Thu, 20 Oct 2022 18:37:02 +0200 Subject: [PATCH] Adapt error message check in backup errors (#550) --- lib/view_model/restore_from_backup_view_model.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/view_model/restore_from_backup_view_model.dart b/lib/view_model/restore_from_backup_view_model.dart index 41bbd5b0a..d3542a668 100644 --- a/lib/view_model/restore_from_backup_view_model.dart +++ b/lib/view_model/restore_from_backup_view_model.dart @@ -64,7 +64,7 @@ abstract class RestoreFromBackupViewModelBase with Store { } catch (e) { var msg = e.toString(); - if (msg == 'Message authentication code (MAC) is invalid') { + if (msg.toLowerCase().contains("message authentication code (mac)")) { msg = 'Incorrect backup password'; }