fix: prevent importing backup files with version > 003

This commit is contained in:
Baptiste Grob
2020-09-04 19:01:22 +02:00
parent c9a5e21c4b
commit a0d6884fd7

View File

@@ -377,6 +377,17 @@ class AccountMenuCtrl extends PureCtrl {
}
async performImport(data, password) {
if (data.keyParams) {
if (Number(data.keyParams.version) > 3) {
this.setState({
importData: null
});
this.alertManager.alert({
text: "This backup file was created using a later version of the application and cannot be imported."
});
return;
}
}
await this.setState({
importData: {
...this.state.importData,