Adapt error message check in backup errors (#550)
Omar Hatem committed
Oct 20, 2022 at 18:37 UTC
d4b5ffd0d6e864614bf4aeea4e63e07358ca9a37
1 file changed
+1
-1
lib/view_model/restore_from_backup_view_model.dart
+1
-1
@@ -64,7 +64,7 @@ abstract class RestoreFromBackupViewModelBase with Store {
64
} catch (e) {
65
var msg = e.toString();
66
67
- if (msg == 'Message authentication code (MAC) is invalid') {
67
+ if (msg.toLowerCase().contains("message authentication code (mac)")) {
68
msg = 'Incorrect backup password';
69
}
70