Added toggle in message menu to switch between HTML/Plain content parts (when available)

This commit is contained in:
the-djmaze 2022-01-14 17:13:17 +01:00
parent e04832c624
commit 630dc1e854
38 changed files with 239 additions and 148 deletions

View file

@ -343,8 +343,7 @@ export const PgpUserStore = new class {
const cl = dom.classList,
signed = cl.contains('openpgp-signed'),
encrypted = cl.contains('openpgp-encrypted');
if ((encrypted || signed) && !dom.phpInited) {
dom.phpInited = 1;
if (encrypted || signed) {
const
domText = dom.textContent,
recipients = rainLoopMessage ? rainLoopMessage.getEmails(['from', 'to', 'cc']) : [],