@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.7.65",
3
+ "version": "1.7.67",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3,7 +3,7 @@ import semver from "semver";
3
3
 
4
4
  export default async function seedUI(config: DBConfig) {
5
5
 
6
- const version = "1.4.79";
6
+ const version = "1.4.81";
7
7
 
8
8
  const existing = await config.getValue(UIPackageConfig, false);
9
9
  if (existing) {
@@ -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