Android security implementation Phase 3.1

This commit is contained in:
2026-11-03 18:05:14 +02:00
parent d165fdc4b4
commit e3b3a9bb52
14 changed files with 224 additions and 48 deletions
+7 -1
View File
@@ -31,7 +31,13 @@ if (Capacitor.isNativePlatform() && Capacitor.getPlatform() === 'android') {
saveAttachment: details => EpMail.saveAttachment(details),
openExternal: url => EpMail.openExternal({ url }),
send: async message => {
if (!message?.pgp || (!message.pgp.encrypt && !message.pgp.sign)) return EpMail.send(message);
if (!message?.pgp || (!message.pgp.encrypt && !message.pgp.sign)) {
if (message?.pgp?.plaintextFallback) {
const { pgp: _options, ...plainMessage } = message;
return EpMail.send({ ...plainMessage, pgpRequested: true });
}
return EpMail.send(message);
}
try {
const { rawBase64, to, from } = await daybreakMail.pgp.buildOutgoing(message);
const { pgp: _options, text: _text, attachments: _attachments, ...headers } = message;