Cleanup pgp decrypt code and show green when decrypted

This commit is contained in:
the-djmaze 2022-02-17 10:18:47 +01:00
parent b2a492bdab
commit f4bed88e39
8 changed files with 280 additions and 302 deletions

View file

@ -372,7 +372,7 @@ export const MessageUserStore = new class {
} else {
body = Element.fromHTML('<div id="' + id + '" hidden="" class="b-text-part '
+ (message.pgpSigned() ? ' openpgp-signed' : '')
+ (message.isPgpEncrypted() ? ' openpgp-encrypted' : '')
+ (message.pgpEncrypted() ? ' openpgp-encrypted' : '')
+ '">'
+ '</div>');
message.body = body;