@bobfrankston/rmfmail 1.1.192 → 1.1.194

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,6 +98,7 @@ __export(api_client_exports, {
98
98
  showReminderPopup: () => showReminderPopup,
99
99
  subscribeStore: () => subscribeStore,
100
100
  syncAccount: () => syncAccount,
101
+ syncFolderNow: () => syncFolderNow,
101
102
  triggerSync: () => triggerSync,
102
103
  undeleteMessage: () => undeleteMessage,
103
104
  unsubscribeOneClick: () => unsubscribeOneClick,
@@ -211,6 +212,9 @@ function triggerSync() {
211
212
  function syncAccount(accountId) {
212
213
  return ipc().syncAccount(accountId);
213
214
  }
215
+ function syncFolderNow(accountId, folderId) {
216
+ return ipc().syncFolderNow?.(accountId, folderId);
217
+ }
214
218
  function reauthenticate(accountId) {
215
219
  return ipc().reauthenticate(accountId);
216
220
  }
@@ -7156,6 +7160,10 @@ initFolderTree(folderTree, (accountId, folderId, folderName, specialUse) => {
7156
7160
  markAsSeen();
7157
7161
  releaseFocus();
7158
7162
  loadMessages(accountId, folderId, 1, specialUse);
7163
+ if (specialUse !== "inbox") {
7164
+ Promise.resolve().then(() => (init_api_client(), api_client_exports)).then((m) => m.syncFolderNow?.(accountId, folderId)).catch(() => {
7165
+ });
7166
+ }
7159
7167
  setTitle(`${APP_NAME} - ${folderName}`);
7160
7168
  setNarrowFolderTitle(folderName);
7161
7169
  setActiveView({ kind: "folder", accountId, folderId, specialUse }, folderName);