fix: empty Trash for shared and group folders #387

This commit is contained in:
Linus Rath
2026-06-03 20:18:02 +02:00
parent 941fa15251
commit 44781f002c
4 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -329,7 +329,7 @@ export class DemoJMAPClient implements IJMAPClient {
this.recalcMailboxCounts();
}
async emptyMailbox(mailboxId: string): Promise<number> {
async emptyMailbox(mailboxId: string, _accountId?: string): Promise<number> {
const before = this.data.emails.length;
this.data.emails = this.data.emails.filter(e => !e.mailboxIds[mailboxId]);
const removed = before - this.data.emails.length;