@social-mail/social-mail-client 1.2.748 → 1.2.750

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.
@@ -27832,6 +27832,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
27832
27832
  });
27833
27833
  }
27834
27834
  saveContact(mc, retry = 3) {
27835
+ var _a;
27835
27836
  return __awaiter(this, void 0, void 0, function* () {
27836
27837
  const {
27837
27838
  emailAddressText,
@@ -27844,7 +27845,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
27844
27845
  }, p => x => x.mailboxID === p.mailboxID && x.emailAddress.emailAddress === p.emailAddress).include(x => x.emailAddress);
27845
27846
  const result = yield q.firstOrDefault();
27846
27847
  if (result) {
27847
- return result;
27848
+ if (mc.folderTagID === mc.folderTagID) {
27849
+ return result;
27850
+ }
27851
+ mc.name = (_a = result.name) !== null && _a !== void 0 ? _a : result.emailAddress.name;
27848
27852
  }
27849
27853
  try {
27850
27854
  yield this.entityService.save(mc);