fix: remove flatname workaround, store Files as real FileNode #379

This commit is contained in:
Linus Rath
2026-06-03 20:53:03 +02:00
parent 44781f002c
commit 568abb0e33
5 changed files with 330 additions and 164 deletions
+4
View File
@@ -902,6 +902,10 @@ export class DemoJMAPClient implements IJMAPClient {
return this.data.fileNodes.filter(n => n.parentId === parentId);
}
async listAllFileNodes(): Promise<FileNode[]> {
return [...this.data.fileNodes];
}
async getFileNodes(ids: string[] | null): Promise<FileNode[]> {
if (ids === null) return [...this.data.fileNodes];
return this.data.fileNodes.filter(n => ids.includes(n.id));