@social-mail/social-mail-client 1.0.93 → 1.0.95

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.
@@ -26199,12 +26199,12 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
26199
26199
  replyEmail({
26200
26200
  email
26201
26201
  }, ce) {
26202
- var _a, _b;
26202
+ var _a, _b, _c;
26203
26203
  return __awaiter(this, void 0, void 0, function* () {
26204
26204
  const parse = JSON.parse(email.headers);
26205
26205
  const emailAddressText = ((_b = (_a = parse === null || parse === void 0 ? void 0 : parse.replyTo) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : this.parameters.emailAddress.emailAddress).toLocaleLowerCase();
26206
26206
  const name = email.senderName;
26207
- const parentID = email.emailID;
26207
+ const parentID = (_c = email.parentID) !== null && _c !== void 0 ? _c : email.emailID;
26208
26208
  const recipients = [EmailRecipient.create({
26209
26209
  name,
26210
26210
  emailAddressText
@@ -26225,9 +26225,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
26225
26225
  }));
26226
26226
  }
26227
26227
  }
26228
+ const subject = /^re\s?\:/i.test(email.subject) ? email.subject : `Re: ${email.subject}`;
26228
26229
  const child = Email.create({
26229
26230
  senderID: this.parameters.mailboxID,
26230
- subject: "Re: " + email.subject,
26231
+ subject,
26231
26232
  parentID,
26232
26233
  received: false,
26233
26234
  recipients,