@social-mail/social-mail-client 1.2.199 → 1.2.201

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.
@@ -17848,13 +17848,19 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
17848
17848
  let q = this.entityService.query(MailboxContact).where({
17849
17849
  mailboxID,
17850
17850
  showBlocked
17851
- }, p => x => x.mailboxID === p.mailboxID && x.blocked === p.showBlocked).orderByDescending(x => x.dateUpdated);
17851
+ }, p => x => x.mailboxID === p.mailboxID && x.blocked === p.showBlocked);
17852
17852
  if (search) {
17853
- const likeSearch = `%${search}%`;
17853
+ const likeSearch = `${search}%`;
17854
17854
  q = q.where({
17855
17855
  search,
17856
17856
  likeSearch
17857
17857
  }, p => x => x.emailAddress.emailAddress === p.search || Sql.text.iLike(x.lastEmail.textBody, p.likeSearch) || Sql.text.iLike(x.lastEmail.subject, p.likeSearch) || Sql.text.iLike(x.emailAddress.name, p.likeSearch) || Sql.text.iLike(x.lastEmail.senderName, p.likeSearch));
17858
+ q = q.orderByDescending({
17859
+ search,
17860
+ likeSearch
17861
+ }, p => x => x.emailAddress.emailAddress === p.search || Sql.text.iLike(x.emailAddress.name, p.likeSearch)).thenByDescending(x => x.dateUpdated);
17862
+ } else {
17863
+ q = q.orderByDescending(x => x.dateUpdated);
17858
17864
  }
17859
17865
  return q.include(x => [x.emailAddress, x.lastEmail]).toPagedList({
17860
17866
  start,
@@ -29435,14 +29441,16 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
29435
29441
  replyEmail({
29436
29442
  email
29437
29443
  }, ce) {
29438
- var _a, _b, _c;
29444
+ var _a, _b;
29439
29445
  return __awaiter(this, void 0, void 0, function* () {
29440
29446
  const parse = JSON.parse(email.headers);
29441
- 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();
29447
+ const replyTo = (_a = parse === null || parse === void 0 ? void 0 : parse.replyTo) === null || _a === void 0 ? void 0 : _a[0];
29448
+ const emailAddressText = this.parameters.emailAddress.emailAddress.toLocaleLowerCase();
29442
29449
  const name = email.senderName;
29443
- const parentID = (_c = email.parentID) !== null && _c !== void 0 ? _c : email.emailID;
29450
+ const parentID = (_b = email.parentID) !== null && _b !== void 0 ? _b : email.emailID;
29444
29451
  const recipients = [EmailRecipient.create({
29445
29452
  name,
29453
+ replyTo,
29446
29454
  emailAddressText
29447
29455
  })];
29448
29456
  if (/all/i.test(ce.type)) {