@social-mail/social-mail-client 1.2.749 → 1.2.751

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.
@@ -22488,6 +22488,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
22488
22488
  });
22489
22489
  }
22490
22490
  saveContact(mc, retry = 3) {
22491
+ var _a;
22491
22492
  return __awaiter(this, void 0, void 0, function* () {
22492
22493
  const {
22493
22494
  emailAddressText,
@@ -22500,9 +22501,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
22500
22501
  }, p => x => x.mailboxID === p.mailboxID && x.emailAddress.emailAddress === p.emailAddress).include(x => x.emailAddress);
22501
22502
  const result = yield q.firstOrDefault();
22502
22503
  if (result) {
22503
- if (mc.folderTagID === mc.folderTagID) {
22504
+ if (result.folderTagID === mc.folderTagID) {
22504
22505
  return result;
22505
22506
  }
22507
+ mc.name = (_a = result.name) !== null && _a !== void 0 ? _a : result.emailAddress.name;
22506
22508
  }
22507
22509
  try {
22508
22510
  yield this.entityService.save(mc);