@social-mail/social-mail-web-server 1.7.65 → 1.7.67
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/dist/server/seed/ui/seed-ui.js +1 -1
- package/dist/server/workflows/sync/SyncMailboxWorkflow.d.ts.map +1 -1
- package/dist/server/workflows/sync/SyncMailboxWorkflow.js +6 -3
- package/dist/server/workflows/sync/SyncMailboxWorkflow.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/seed/ui/seed-ui.ts +1 -1
- package/src/server/workflows/sync/SyncMailboxWorkflow.ts +6 -3
package/package.json
CHANGED
|
@@ -223,9 +223,6 @@ export default class SyncMailboxWorkflow extends Workflow<any, any> {
|
|
|
223
223
|
|
|
224
224
|
const { emailID, uid, labels, messageId, from } = iterator;
|
|
225
225
|
const cUID = BigInt(uid);
|
|
226
|
-
if (cUID > currentLastUID && cUID < end) {
|
|
227
|
-
currentLastUID = cUID;
|
|
228
|
-
}
|
|
229
226
|
|
|
230
227
|
state.lastIndex = iterator.index.toString();
|
|
231
228
|
|
|
@@ -248,6 +245,9 @@ export default class SyncMailboxWorkflow extends Workflow<any, any> {
|
|
|
248
245
|
// we will send noop to
|
|
249
246
|
// prevent disconnection
|
|
250
247
|
syncState.progress = (BigInt(syncState.progress) + 1n).toString();
|
|
248
|
+
if (cUID > currentLastUID && cUID < end) {
|
|
249
|
+
currentLastUID = cUID;
|
|
250
|
+
}
|
|
251
251
|
continue;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
@@ -270,6 +270,9 @@ export default class SyncMailboxWorkflow extends Workflow<any, any> {
|
|
|
270
270
|
isDraft,
|
|
271
271
|
silent: true
|
|
272
272
|
});
|
|
273
|
+
if (cUID > currentLastUID && cUID < end) {
|
|
274
|
+
currentLastUID = cUID;
|
|
275
|
+
}
|
|
273
276
|
// console.log(`Saved ${uid}`);
|
|
274
277
|
}
|
|
275
278
|
|