@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.
- package/dist/admin/AdminAppIndex.pack.js +13 -5
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +2 -2
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/model/model.d.ts +1 -0
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +13 -5
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +2 -2
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
- package/dist/web/page/mails/ConversationPage.js +5 -3
- package/dist/web/page/mails/ConversationPage.js.map +1 -1
- package/dist/web/page/mails/service/MailService.d.ts.map +1 -1
- package/dist/web/page/mails/service/MailService.js +8 -2
- package/dist/web/page/mails/service/MailService.js.map +1 -1
- package/package.json +1 -1
- package/src/model/model.ts +1 -0
- package/src/web/page/mails/ConversationPage.tsx +3 -1
- package/src/web/page/mails/service/MailService.ts +7 -3
|
@@ -21895,13 +21895,19 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
21895
21895
|
let q = this.entityService.query(MailboxContact).where({
|
|
21896
21896
|
mailboxID,
|
|
21897
21897
|
showBlocked
|
|
21898
|
-
}, p => x => x.mailboxID === p.mailboxID && x.blocked === p.showBlocked)
|
|
21898
|
+
}, p => x => x.mailboxID === p.mailboxID && x.blocked === p.showBlocked);
|
|
21899
21899
|
if (search) {
|
|
21900
|
-
const likeSearch =
|
|
21900
|
+
const likeSearch = `${search}%`;
|
|
21901
21901
|
q = q.where({
|
|
21902
21902
|
search,
|
|
21903
21903
|
likeSearch
|
|
21904
21904
|
}, 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));
|
|
21905
|
+
q = q.orderByDescending({
|
|
21906
|
+
search,
|
|
21907
|
+
likeSearch
|
|
21908
|
+
}, p => x => x.emailAddress.emailAddress === p.search || Sql.text.iLike(x.emailAddress.name, p.likeSearch)).thenByDescending(x => x.dateUpdated);
|
|
21909
|
+
} else {
|
|
21910
|
+
q = q.orderByDescending(x => x.dateUpdated);
|
|
21905
21911
|
}
|
|
21906
21912
|
return q.include(x => [x.emailAddress, x.lastEmail]).toPagedList({
|
|
21907
21913
|
start,
|
|
@@ -36781,14 +36787,16 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
36781
36787
|
replyEmail({
|
|
36782
36788
|
email
|
|
36783
36789
|
}, ce) {
|
|
36784
|
-
var _a, _b
|
|
36790
|
+
var _a, _b;
|
|
36785
36791
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36786
36792
|
const parse = JSON.parse(email.headers);
|
|
36787
|
-
const
|
|
36793
|
+
const replyTo = (_a = parse === null || parse === void 0 ? void 0 : parse.replyTo) === null || _a === void 0 ? void 0 : _a[0];
|
|
36794
|
+
const emailAddressText = this.parameters.emailAddress.emailAddress.toLocaleLowerCase();
|
|
36788
36795
|
const name = email.senderName;
|
|
36789
|
-
const parentID = (
|
|
36796
|
+
const parentID = (_b = email.parentID) !== null && _b !== void 0 ? _b : email.emailID;
|
|
36790
36797
|
const recipients = [EmailRecipient.create({
|
|
36791
36798
|
name,
|
|
36799
|
+
replyTo,
|
|
36792
36800
|
emailAddressText
|
|
36793
36801
|
})];
|
|
36794
36802
|
if (/all/i.test(ce.type)) {
|