@remit/mailbox-service 0.0.54 → 0.0.55

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": "@remit/mailbox-service",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -256,10 +256,14 @@ export class OutboxQueueService {
256
256
  outboxMessageId,
257
257
  "act",
258
258
  );
259
+ // `unfiled` is discardable: the message was delivered but never landed in
260
+ // a Sent folder, so this row is the only copy the user has and dismissing
261
+ // it is their acknowledgement.
259
262
  if (
260
263
  existing.status !== OutboxMessageStatus.draft &&
261
264
  existing.status !== OutboxMessageStatus.failed &&
262
- existing.status !== OutboxMessageStatus.blocked
265
+ existing.status !== OutboxMessageStatus.blocked &&
266
+ existing.status !== OutboxMessageStatus.unfiled
263
267
  ) {
264
268
  throw new ConflictError(
265
269
  `This message is already ${existing.status} and can no longer be discarded. Open the Outbox to see where it stands.`,