@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 +1 -1
- package/src/outbox-queue.ts +5 -1
package/package.json
CHANGED
package/src/outbox-queue.ts
CHANGED
|
@@ -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.`,
|