@social-mail/social-mail-web-server 1.7.50 → 1.7.52

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.7.50",
3
+ "version": "1.7.52",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -57,7 +57,7 @@ export default class EmailEvents extends AuthenticatedEvents<Email> {
57
57
  }
58
58
  const { userID } = this.sessionUser;
59
59
  return query.where({ userID }, (p) => (x) =>
60
- x.mailboxContactEvents.some((m) =>
60
+ x.threadContacts.some((m) =>
61
61
  m.mailbox.userMailboxes.some((mu) => mu.userID === p.userID)
62
62
  || m.mailbox.domain.hostedDomain.domainUsers.some((du) => du.userID === p.userID && du.isAdmin === true)
63
63
  )
@@ -272,6 +272,12 @@ export default class EmailEvents extends AuthenticatedEvents<Email> {
272
272
  if (filter.is((x) => x.senderEmail)) {
273
273
  return filter.read();
274
274
  }
275
+ if (filter.is((x) => x.parent)) {
276
+ return filter.read();
277
+ }
278
+ if (filter.is((x) => x.thread)) {
279
+ return filter.read();
280
+ }
275
281
  }
276
282
 
277
283
  beforeSerialize(items: Email[]) {
@@ -3,7 +3,7 @@ import semver from "semver";
3
3
 
4
4
  export default async function seedUI(config: DBConfig) {
5
5
 
6
- const version = "1.4.69";
6
+ const version = "1.4.70";
7
7
 
8
8
  const existing = await config.getValue(UIPackageConfig, false);
9
9
  if (existing) {