#89 OpenPGP.js verify cleartext

This commit is contained in:
the-djmaze 2022-02-02 17:00:27 +01:00
parent f625abe0b2
commit acfe13bdc2
2 changed files with 4 additions and 4 deletions

View file

@ -179,9 +179,7 @@ export const PgpUserStore = new class {
async verify(message) {
const plain = message.plain();
if (/-----BEGIN PGP SIGNED MESSAGE-----/.test(plain) && /-----BEGIN PGP SIGNATURE-----/.test(plain)) {
let result = await OpenPGPUserStore.verify(plain);
console.dir(result);
return;
return await OpenPGPUserStore.verify(message);
}
if (message.pgpSigned()) {
const sender = message.from[0].email;