All: Do not display master key upgrade warnings for new master keys

This commit is contained in:
Laurent Cozic committed 2021-08-27 11:30:21 +01:00
1 parent 814f602bd6
commit 70efaddeaf
1 file changed
+3 -1
@@ -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) {