Don't remember GnuPGP key passphrase when it fails #840

This commit is contained in:
the-djmaze 2023-02-02 14:50:46 +01:00
parent e01af6a7ac
commit 73e6848ff4

View file

@ -82,6 +82,8 @@ export const GnuPGUserStore = new class {
if (oData?.Result) {
key.armor = oData.Result;
showScreenPopup(OpenPgpKeyPopupView, [key]);
} else {
passphrases.delete(key.id);
}
}, {
keyId: key.id,
@ -196,6 +198,7 @@ export const GnuPGUserStore = new class {
if (result?.Result && false !== result.Result.data) {
return result.Result;
}
passphrases.delete(key.id);
}
}
}