@social-mail/social-mail-client 1.8.120 → 1.8.121
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/public/channel/ChannelApp.pack.js +9 -12
- package/dist/public/channel/ChannelApp.pack.js.map +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
- package/dist/public/channel/pages/posts/ChannelPage.d.ts.map +1 -1
- package/dist/public/channel/pages/posts/ChannelPage.js +9 -12
- package/dist/public/channel/pages/posts/ChannelPage.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/public/channel/pages/posts/ChannelPage.tsx +14 -11
|
@@ -26926,7 +26926,6 @@ System.register(["tslib", "../../BlogService", "../../../../model/model", "@web-
|
|
|
26926
26926
|
if (tag) {
|
|
26927
26927
|
tag = tag.toLowerCase();
|
|
26928
26928
|
q = q.where({
|
|
26929
|
-
emailID,
|
|
26930
26929
|
tag
|
|
26931
26930
|
}, p => x => x.email.emailTags.some(t => t.tag.lowerCaseName === p.tag));
|
|
26932
26931
|
}
|
|
@@ -26935,22 +26934,20 @@ System.register(["tslib", "../../BlogService", "../../../../model/model", "@web-
|
|
|
26935
26934
|
author
|
|
26936
26935
|
}, p => x => x.email.senderName === p.author);
|
|
26937
26936
|
}
|
|
26938
|
-
|
|
26939
|
-
q = q.union({
|
|
26940
|
-
emailID
|
|
26941
|
-
}, p => x => x.emailID === p.emailID);
|
|
26942
|
-
q = q.orderByDescending({
|
|
26943
|
-
emailID
|
|
26944
|
-
}, p => x => x.emailID === p.emailID).thenByDescending(x => x.datePublished);
|
|
26945
|
-
start = 0;
|
|
26946
|
-
} else {
|
|
26947
|
-
q = q.orderByDescending(x => x.datePublished);
|
|
26948
|
-
}
|
|
26937
|
+
q = q.orderByDescending(x => x.datePublished);
|
|
26949
26938
|
const size = this.size;
|
|
26939
|
+
const emailLoader = emailID && this.entityService.query(ChannelEmail, "channelEmails").where({
|
|
26940
|
+
emailID
|
|
26941
|
+
}, p => x => x.emailID === p.emailID).include(x => [x.mailbox.emailAddress, x.email.engagements, x.email.attachments]).firstOrDefault();
|
|
26950
26942
|
const result = yield q.include(x => [x.mailbox.emailAddress, x.email.engagements, x.email.attachments]).toPagedList({
|
|
26951
26943
|
start,
|
|
26952
26944
|
size
|
|
26953
26945
|
});
|
|
26946
|
+
if (emailLoader) {
|
|
26947
|
+
const e = yield emailLoader;
|
|
26948
|
+
result.items.remove(i => i.emailID === e.emailID);
|
|
26949
|
+
result.items.splice(0, 0, e);
|
|
26950
|
+
}
|
|
26954
26951
|
const tasks = [];
|
|
26955
26952
|
for (const {
|
|
26956
26953
|
postID,
|