@remit/imap-worker 0.0.94 → 0.0.96
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.
|
@@ -187,13 +187,7 @@ export const handleEmptyTrash = async (event, ctx) => {
|
|
|
187
187
|
const swept = sweepable.filter((message) => expunged.has(message.uid));
|
|
188
188
|
const sweptIds = new Set(swept.map((message) => message.messageId));
|
|
189
189
|
const deletedCount = swept.length;
|
|
190
|
-
|
|
191
|
-
await messageService.delete(message.messageId);
|
|
192
|
-
const threadMessage = await threadMessageService.findByMessageId(account.accountConfigId, message.messageId);
|
|
193
|
-
if (threadMessage) {
|
|
194
|
-
await threadMessageService.delete(threadMessage.accountConfigId, threadMessage.threadMessageId);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
190
|
+
await messageService.deleteMany([...sweptIds]);
|
|
197
191
|
// Everything this sweep did not carry through is still marked for a
|
|
198
192
|
// deletion that will never come: mail another client already
|
|
199
193
|
// emptied, mail that reached Trash after the SEARCH, a redelivery
|