@bobfrankston/rmfmail 1.2.39 → 1.2.40

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.
@@ -7444,6 +7444,7 @@ initFolderTree(folderTree, (accountId, folderId, folderName, specialUse) => {
7444
7444
  updateSearchHighlight();
7445
7445
  }
7446
7446
  clearSearchMode();
7447
+ cancelServerSearch();
7447
7448
  markAsSeen();
7448
7449
  releaseFocus();
7449
7450
  loadMessages(accountId, folderId, 1, specialUse);
@@ -7462,6 +7463,7 @@ initFolderTree(folderTree, (accountId, folderId, folderName, specialUse) => {
7462
7463
  updateSearchHighlight();
7463
7464
  }
7464
7465
  clearSearchMode();
7466
+ cancelServerSearch();
7465
7467
  releaseFocus();
7466
7468
  loadUnifiedInbox();
7467
7469
  setTitle(`${APP_NAME} - All Inboxes`);
@@ -7474,6 +7476,7 @@ function applyTabView(tab) {
7474
7476
  updateSearchHighlight();
7475
7477
  }
7476
7478
  clearSearchMode();
7479
+ cancelServerSearch();
7477
7480
  releaseFocus();
7478
7481
  const v = tab.view;
7479
7482
  if (v.kind === "unified") {
@@ -8795,6 +8798,11 @@ var serverSearchTimer = null;
8795
8798
  function doSearch(immediate = false) {
8796
8799
  const query = searchInput.value.trim();
8797
8800
  if (query.length === 0) {
8801
+ if (serverSearchTimer) {
8802
+ clearTimeout(serverSearchTimer);
8803
+ serverSearchTimer = null;
8804
+ }
8805
+ cancelServerSearch();
8798
8806
  reloadCurrentFolder();
8799
8807
  return;
8800
8808
  }