Android security implementation Phase 3.1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user