mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Show GnuPG verify error
This commit is contained in:
parent
6f98aee998
commit
6141ca7936
2 changed files with 4 additions and 2 deletions
|
|
@ -183,7 +183,7 @@ export const GnuPGUserStore = new class {
|
|||
}
|
||||
if (null !== params.passphrase) {
|
||||
const result = await Remote.post('GnupgDecrypt', null, params);
|
||||
if (result?.Result && false !== result.Result.data) {
|
||||
if (result?.Result?.data) {
|
||||
return result.Result;
|
||||
}
|
||||
Passphrases.delete(key);
|
||||
|
|
@ -208,7 +208,8 @@ export const GnuPGUserStore = new class {
|
|||
if (response?.Result) {
|
||||
return {
|
||||
fingerprint: response.Result.fingerprint,
|
||||
success: 0 == response.Result.status // GOODSIG
|
||||
success: 0 == response.Result.status, // GOODSIG
|
||||
error: response.Result.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue