Use resource sync notifications in the web client

This commit is contained in:
shuaiplus
2026-06-21 16:14:20 +08:00
parent f9fe53285f
commit 42b765b113
5 changed files with 264 additions and 10 deletions
+3
View File
@@ -683,6 +683,9 @@ export async function handleBulkDeleteSends(request: Request, env: Env, userId:
const revisionDate = await storage.bulkDeleteSends(body.ids, userId);
if (revisionDate) {
notifyVaultSyncForRequest(request, env, userId, revisionDate);
for (const send of sends) {
notifySendDeleteForRequest(request, env, send.id, userId, revisionDate);
}
await writeSendAudit(storage, request, userId, 'send.delete.bulk', {
count: sends.length,
requestedCount: body.ids.length,