@social-mail/social-mail-client 1.8.272 → 1.8.273
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 +11 -1
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/public/channel/ChannelApp.pack.js +13 -6
- 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/PublicChannelPage.js +1 -1
- package/dist/public/channel/pages/PublicChannelPage.js.map +1 -1
- package/dist/public/channel/pages/posts/ChannelPage.js +2 -5
- package/dist/public/channel/pages/posts/ChannelPage.js.map +1 -1
- package/dist/services/email/EmailContentDownloader.d.ts +2 -1
- package/dist/services/email/EmailContentDownloader.d.ts.map +1 -1
- package/dist/services/email/EmailContentDownloader.js +11 -1
- package/dist/services/email/EmailContentDownloader.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +11 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +11 -1
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/public/channel/pages/PublicChannelPage.tsx +1 -1
- package/src/public/channel/pages/posts/ChannelPage.tsx +2 -2
- package/src/services/email/EmailContentDownloader.ts +8 -1
package/package.json
CHANGED
|
@@ -91,7 +91,7 @@ export default class PublicChannelPage extends ContentPage<{ channel, slug }> {
|
|
|
91
91
|
const { email } = this;
|
|
92
92
|
const { headerMessageID } = email;
|
|
93
93
|
const { channel: { emailAddress: { emailAddress }} } = this;
|
|
94
|
-
const subject = `${emoji}:${
|
|
94
|
+
const subject = `${emoji}:${BigInt(email.emailID).toString(36)}:${headerMessageID}`;
|
|
95
95
|
const link = Mailto.create({ to: emailAddress, subject, body: emoji, inReplyTo: headerMessageID });
|
|
96
96
|
// const link = `mailto:${channel.emailAddress.emailAddress}?subject=${subject}&body=${emoji}&in-reply-to=${headerMessageID}`;
|
|
97
97
|
this.element.dispatchEvent(new CustomEvent("shareLink", {
|
|
@@ -150,8 +150,8 @@ export default class ChannelPage extends ContentPage {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
const tasks = [];
|
|
153
|
-
for(const
|
|
154
|
-
tasks.push(this.downloader.downloadPost(
|
|
153
|
+
for(const ce of result.items) {
|
|
154
|
+
tasks.push(this.downloader.downloadPost(ce));
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
await Promise.all(tasks);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import DISingleton from "@web-atoms/core/dist/di/DISingleton";
|
|
2
2
|
import TaskManager from "@web-atoms/entity/dist/models/TaskManager";
|
|
3
|
-
import { Email, EmailEngagement, IEmail, IMailboxContactEmail, MailboxContactEmail } from "../../model/model";
|
|
3
|
+
import { ChannelEmail, Email, EmailEngagement, IChannelEmail, IEmail, IMailboxContactEmail, MailboxContactEmail } from "../../model/model";
|
|
4
4
|
import FetchBuilder from "@web-atoms/core/dist/services/FetchBuilder";
|
|
5
5
|
import { Inject } from "@web-atoms/core/dist/di/Inject";
|
|
6
6
|
import EntityService from "../EntityService";
|
|
@@ -16,6 +16,13 @@ export default class EmailContentDownloader extends TaskManager {
|
|
|
16
16
|
@Inject
|
|
17
17
|
entityService: EntityService;
|
|
18
18
|
|
|
19
|
+
async downloadPostContent(email: IChannelEmail) {
|
|
20
|
+
email.email.htmlBody ||= await this.entityService.run(ChannelEmail, "getBody", email, {
|
|
21
|
+
cacheVersion: CacheVersions.email,
|
|
22
|
+
cacheSeconds
|
|
23
|
+
} ).asText();
|
|
24
|
+
}
|
|
25
|
+
|
|
19
26
|
async downloadPost(email: IEmail) {
|
|
20
27
|
email.htmlBody ||= await this.entityService.run(Email, "getBody", email, {
|
|
21
28
|
cacheVersion: CacheVersions.email,
|