Adapt error message check in backup errors (#550)

This commit is contained in:
Omar Hatem 2022-10-20 18:37:02 +02:00 committed by GitHub
parent 3a9c8be9ca
commit d4b5ffd0d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ abstract class RestoreFromBackupViewModelBase with Store {
} catch (e) { } catch (e) {
var msg = e.toString(); var msg = e.toString();
if (msg == 'Message authentication code (MAC) is invalid') { if (msg.toLowerCase().contains("message authentication code (mac)")) {
msg = 'Incorrect backup password'; msg = 'Incorrect backup password';
} }