1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 10:52:17 -05:00

[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

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) {