@serve.zone/dcrouter 18.1.1 → 18.2.0

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.
@@ -1128,7 +1128,10 @@ export class WorkAppMailManager {
1128
1128
  spoolItem: {
1129
1129
  id: cachedEmailArg.id,
1130
1130
  owner,
1131
- direction: this.getCachedEmailSessionUsername(cachedEmailArg) ? 'outbound' : 'inbound',
1131
+ // The persisted field is the single source of truth: it is derived from
1132
+ // the recipients at acceptance, whereas re-deriving from the session
1133
+ // username here reproduced the "authenticated means outbound" mistake.
1134
+ direction: cachedEmailArg.direction,
1132
1135
  status,
1133
1136
  envelope: {
1134
1137
  mailFrom: cachedEmailArg.from,
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/dcrouter',
6
- version: '18.1.1',
6
+ version: '18.2.0',
7
7
  description: 'A multifaceted routing service handling mail and SMS delivery functions.'
8
8
  }