@bobfrankston/rmfmail 1.0.706 → 1.0.708

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.
Files changed (38) hide show
  1. package/client/android-bootstrap.bundle.js +163 -2
  2. package/client/android-bootstrap.bundle.js.map +2 -2
  3. package/client/app.bundle.js.map +2 -2
  4. package/client/compose/compose.bundle.js +15 -1
  5. package/client/compose/compose.bundle.js.map +2 -2
  6. package/client/compose/compose.js +25 -5
  7. package/client/compose/compose.js.map +1 -1
  8. package/client/compose/compose.ts +21 -5
  9. package/package.json +3 -3
  10. package/packages/mailx-service/index.d.ts +27 -2
  11. package/packages/mailx-service/index.d.ts.map +1 -1
  12. package/packages/mailx-service/index.js +17 -0
  13. package/packages/mailx-service/index.js.map +1 -1
  14. package/packages/mailx-service/index.ts +21 -2
  15. package/packages/mailx-settings/index.d.ts.map +1 -1
  16. package/packages/mailx-settings/index.js +11 -1
  17. package/packages/mailx-settings/index.js.map +1 -1
  18. package/packages/mailx-settings/index.ts +11 -1
  19. package/packages/mailx-store/parse-worker.js +17 -1
  20. package/packages/mailx-store/parse-worker.js.map +1 -1
  21. package/packages/mailx-store/parse-worker.ts +17 -1
  22. package/packages/mailx-store-web/package.json +1 -1
  23. package/packages/mailx-store-web/web-service.d.ts +88 -3
  24. package/packages/mailx-store-web/web-service.d.ts.map +1 -1
  25. package/packages/mailx-store-web/web-service.js +92 -2
  26. package/packages/mailx-store-web/web-service.js.map +1 -1
  27. package/packages/mailx-store-web/web-service.ts +110 -5
  28. package/packages/mailx-types/index.d.ts +1 -0
  29. package/packages/mailx-types/index.d.ts.map +1 -1
  30. package/packages/mailx-types/index.js.map +1 -1
  31. package/packages/mailx-types/index.ts +1 -0
  32. package/packages/mailx-types/mailx-api.d.ts +212 -0
  33. package/packages/mailx-types/mailx-api.d.ts.map +1 -0
  34. package/packages/mailx-types/mailx-api.js +41 -0
  35. package/packages/mailx-types/mailx-api.js.map +1 -0
  36. package/packages/mailx-types/mailx-api.ts +159 -0
  37. package/packages/mailx-types/package.json +1 -1
  38. /package/packages/mailx-imap/{node_modules.npmglobalize-stash-44928 → node_modules.npmglobalize-stash-24548}/.package-lock.json +0 -0
@@ -3923,14 +3923,28 @@ function waitForParentInit(maxMs) {
3923
3923
  editor.onContentChange(scheduleDraftSave);
3924
3924
  draftTimer = setInterval(saveDraft2, DRAFT_INTERVAL_MS);
3925
3925
  let lastPolledHtml = editor.getHtml();
3926
+ let _pollBackoffSkips = 0;
3927
+ let _pollSkipsRemaining = 0;
3926
3928
  setInterval(() => {
3927
3929
  try {
3930
+ if (_pollSkipsRemaining > 0) {
3931
+ _pollSkipsRemaining--;
3932
+ return;
3933
+ }
3928
3934
  const current = editor.getHtml();
3929
3935
  if (current === lastPolledHtml) return;
3930
3936
  lastPolledHtml = current;
3931
3937
  markComposeDirty();
3932
3938
  lastDraftContent = "";
3933
- saveDraft2();
3939
+ const wasFailing = draftSaveFailed;
3940
+ saveDraft2().then(() => {
3941
+ if (!draftSaveFailed) _pollBackoffSkips = 0;
3942
+ }).catch(() => {
3943
+ });
3944
+ if (wasFailing || draftSaveFailed) {
3945
+ _pollBackoffSkips = Math.min(_pollBackoffSkips + 1, 7);
3946
+ _pollSkipsRemaining = _pollBackoffSkips;
3947
+ }
3934
3948
  } catch {
3935
3949
  }
3936
3950
  }, 4e3);