Properly handle GnuPG decrypt failure #600

This commit is contained in:
the-djmaze 2022-11-16 17:05:53 +01:00
parent 92240e84a6
commit 48f4e51dc5

View file

@ -186,7 +186,7 @@ export const GnuPGUserStore = new class {
}
if (null !== params.Passphrase) {
const result = await Remote.post('GnupgDecrypt', null, params);
if (result?.Result) {
if (result?.Result && false !== result.Result.data) {
return result.Result;
}
}