Performance tuning of opening IMAP mailbox and Fix mailbox logic so it wont auto open first mail
This commit is contained in:
@@ -5,6 +5,7 @@ const EpMail = registerPlugin('EpMail');
|
||||
|
||||
if (Capacitor.isNativePlatform() && Capacitor.getPlatform() === 'android') {
|
||||
const daybreakMail = {
|
||||
platform: 'android',
|
||||
getAppVersion: () => EpMail.getAppVersion().then(result => result.version),
|
||||
getNotificationPrivacy: () => EpMail.getNotificationPrivacy(),
|
||||
setNotificationDetails: enabled => EpMail.setNotificationDetails({ enabled }),
|
||||
@@ -19,6 +20,7 @@ if (Capacitor.isNativePlatform() && Capacitor.getPlatform() === 'android') {
|
||||
connect: details => EpMail.connect(details),
|
||||
updateAccount: (id, details) => EpMail.updateAccount({ id, ...details }),
|
||||
syncFolder: (folder, offset, filters) => EpMail.syncFolder({ folder, offset, filters }),
|
||||
getCachedFolder: (folder, offset, filters) => EpMail.getCachedFolder({ folder, offset, filters }).then(result => result.cached),
|
||||
listFolders: () => EpMail.listFolders(),
|
||||
createFolder: name => EpMail.createFolder({ name }),
|
||||
listDrafts: () => EpMail.listDrafts(),
|
||||
|
||||
Reference in New Issue
Block a user