mirror of
https://github.com/laurent22/joplin.git
synced 2025-04-07 21:38:58 +02:00
All: Do not display master key upgrade warnings for new master keys
This commit is contained in:
parent
814f602bd6
commit
70efaddeaf
@ -189,7 +189,9 @@ export default class EncryptionService {
|
||||
}
|
||||
|
||||
masterKeysThatNeedUpgrading(masterKeys: MasterKeyEntity[]) {
|
||||
return MasterKey.allWithoutEncryptionMethod(masterKeys, this.defaultMasterKeyEncryptionMethod_);
|
||||
const output = MasterKey.allWithoutEncryptionMethod(masterKeys, this.defaultMasterKeyEncryptionMethod_);
|
||||
// Anything below 5 is a new encryption method and doesn't need an upgrade
|
||||
return output.filter(mk => mk.encryption_method <= 5);
|
||||
}
|
||||
|
||||
async upgradeMasterKey(model: MasterKeyEntity, decryptionPassword: string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user