mirror of
https://github.com/ProtonMail/protoncore_android.git
synced 2026-05-15 09:50:41 +00:00
fix(user): Fixed Key format generation logic if 1 address 0 keys (Key Migration Phase 2).
This commit is contained in:
@@ -42,7 +42,7 @@ fun List<UserAddress>.firstInternalOrNull() = filterInternal().firstOrNull()
|
||||
/**
|
||||
* @return true if migrated/new key format must be generated, false otherwise.
|
||||
*/
|
||||
fun List<UserAddress>.generateNewKeyFormat() = isEmpty() || hasMigratedKey()
|
||||
fun List<UserAddress>.generateNewKeyFormat() = all { it.keys.isEmpty() } || hasMigratedKey()
|
||||
|
||||
/**
|
||||
* @return true if at least one [UserAddress] is migrated into the new key format, false otherwise.
|
||||
|
||||
Reference in New Issue
Block a user