@social-mail/social-mail-client 1.2.531 → 1.2.532

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.
@@ -27927,7 +27927,6 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
27927
27927
  mailboxID
27928
27928
  }, p => x => x.mailboxID === p.mailboxID && x.emailAddressID === null).firstOrDefault();
27929
27929
  mb.notify = !!notify;
27930
- mb.folders.remove(x => !x.count);
27931
27930
  const index = x => {
27932
27931
  switch (x.tag.name.toLocaleLowerCase()) {
27933
27932
  case "contacts":
@@ -27942,7 +27941,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
27942
27941
  return 100;
27943
27942
  };
27944
27943
  mb.folders.sort((a, b) => index(a) - index(b));
27945
- mb.folders[0].main = true;
27944
+ if (mb.folders.length) {
27945
+ mb.folders[0].main = true;
27946
+ }
27947
+ mb.folders.remove(x => !x.main && !x.count);
27946
27948
  return mb;
27947
27949
  });
27948
27950
  }