@bobfrankston/rmfmail 1.0.548 → 1.0.550
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.
- package/client/app.js +7 -4
- package/client/app.js.map +1 -1
- package/client/app.ts +10 -7
- package/client/compose/compose.js +2 -2
- package/client/compose/compose.js.map +1 -1
- package/client/compose/compose.ts +2 -2
- package/package.json +3 -3
- package/packages/mailx-imap/index.d.ts +9 -1
- package/packages/mailx-imap/index.d.ts.map +1 -1
- package/packages/mailx-imap/index.js +92 -51
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +83 -55
- package/packages/mailx-imap/package-lock.json +2 -2
- package/packages/mailx-imap/package.json +1 -1
- package/packages/mailx-service/local-store.d.ts.map +1 -1
- package/packages/mailx-service/local-store.js +5 -1
- package/packages/mailx-service/local-store.js.map +1 -1
- package/packages/mailx-service/local-store.ts +5 -1
- package/packages/mailx-service/reconciler.d.ts +28 -0
- package/packages/mailx-service/reconciler.d.ts.map +1 -1
- package/packages/mailx-service/reconciler.js +70 -2
- package/packages/mailx-service/reconciler.js.map +1 -1
- package/packages/mailx-service/reconciler.ts +81 -2
- package/packages/mailx-settings/docs/contacts.md +6 -1
- package/packages/mailx-settings/docs/search.md +99 -0
- package/packages/mailx-settings/package.json +1 -1
- package/packages/mailx-store/file-store.d.ts +6 -0
- package/packages/mailx-store/file-store.d.ts.map +1 -1
- package/packages/mailx-store/file-store.js +8 -0
- package/packages/mailx-store/file-store.js.map +1 -1
- package/packages/mailx-store/file-store.ts +9 -0
- package/packages/mailx-store/package.json +1 -1
package/client/app.js
CHANGED
|
@@ -2044,13 +2044,16 @@ onWsEvent((event) => {
|
|
|
2044
2044
|
case "syncActionFailed": {
|
|
2045
2045
|
// Surface sync failures (move/delete/flag not applied on server)
|
|
2046
2046
|
// so the user knows local-first actions haven't propagated yet.
|
|
2047
|
-
// Status
|
|
2048
|
-
//
|
|
2049
|
-
//
|
|
2047
|
+
// Status-bar hint always; banner only when the service is telling
|
|
2048
|
+
// us it has GIVEN UP (message starts with "Gave up"). A full sync
|
|
2049
|
+
// over a flaky link fires syncActionFailed once per attempt, and
|
|
2050
|
+
// a banner per attempt floods DOM work on the WebView main thread.
|
|
2050
2051
|
const action = event.action === "move" ? "Move" : event.action === "delete" ? "Delete" : event.action;
|
|
2051
2052
|
if (statusSync)
|
|
2052
2053
|
statusSync.textContent = `Sync failed: ${action}`;
|
|
2053
|
-
|
|
2054
|
+
if (typeof event.error === "string" && /gave up/i.test(event.error)) {
|
|
2055
|
+
showAlert(`Couldn't ${action.toLowerCase()} message on the server after retries: ${event.error}. Local change kept.`, "conflict");
|
|
2056
|
+
}
|
|
2054
2057
|
break;
|
|
2055
2058
|
}
|
|
2056
2059
|
case "reload":
|