[WO-526] Fix key activation race condition

Add imported flag to public key to avoid unnecessary check
for deletion/update of personal public key, same behavior
as imported public keys
This commit is contained in:
Felix Hammerl 2014-09-02 14:38:17 +02:00
parent c75e365c65
commit 54c9ca3a73
1 changed files with 3 additions and 0 deletions

View File

@ -825,6 +825,9 @@ define(function(require) {
return;
}
// don't check the user's own public key for deletion in refreshKeyForUserId
keypair.publicKey.imported = true;
// store public key locally
self.saveLocalPublicKey(keypair.publicKey, function(err) {
if (err) {