@remit/mailbox-service 0.0.68 → 0.0.69
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
|
@@ -201,6 +201,15 @@ describe("what a mailbox says about the addresses on its messages", () => {
|
|
|
201
201
|
assert.deepEqual(emails(saved.envelopeAddresses), BOTH);
|
|
202
202
|
});
|
|
203
203
|
|
|
204
|
+
it("leaves the identity of an envelope address to the store", async () => {
|
|
205
|
+
const saved = await save(mailboxAt("INBOX"));
|
|
206
|
+
|
|
207
|
+
assert.ok(saved.envelopeAddresses.length > 0);
|
|
208
|
+
for (const envelopeAddress of saved.envelopeAddresses) {
|
|
209
|
+
assert.ok(!("envelopeAddressId" in envelopeAddress));
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
|
|
204
213
|
it("keeps a message in Trash from deciding either way", async () => {
|
|
205
214
|
const saved = await save(mailboxAt("Trash"), "Trash");
|
|
206
215
|
|
package/src/message-sync.ts
CHANGED
|
@@ -16,7 +16,6 @@ import { storedDisplayName } from "@remit/data-ports/display-name";
|
|
|
16
16
|
import {
|
|
17
17
|
deriveAddressId,
|
|
18
18
|
deriveBodyPartId,
|
|
19
|
-
deriveEnvelopeAddressId,
|
|
20
19
|
deriveEnvelopeId,
|
|
21
20
|
deriveMessageIdFromSource,
|
|
22
21
|
deriveThreadId,
|
|
@@ -1506,8 +1505,6 @@ export class MessageSyncService {
|
|
|
1506
1505
|
|
|
1507
1506
|
const addressId = deriveAddressId(accountConfigId, normalizedEmail);
|
|
1508
1507
|
|
|
1509
|
-
const envelopeAddressId = deriveEnvelopeAddressId(messageId, role, order);
|
|
1510
|
-
|
|
1511
1508
|
const addressInput = {
|
|
1512
1509
|
addressId,
|
|
1513
1510
|
accountConfigId,
|
|
@@ -1526,7 +1523,6 @@ export class MessageSyncService {
|
|
|
1526
1523
|
}
|
|
1527
1524
|
|
|
1528
1525
|
await addressService.upsertEnvelopeAddress({
|
|
1529
|
-
envelopeAddressId,
|
|
1530
1526
|
messageId,
|
|
1531
1527
|
addressId,
|
|
1532
1528
|
displayName,
|