fix: files show creation date instead of modification date #700

This commit is contained in:
Linus Rath
2026-07-30 19:41:02 +02:00
parent a6c15b8ad6
commit 348e032dce
6 changed files with 63 additions and 21 deletions
+1 -1
View File
@@ -5534,7 +5534,7 @@ export class JMAPClient implements IJMAPClient {
}
private static FILE_NODE_PROPERTIES = [
"id", "parentId", "name", "type", "blobId", "size", "created", "updated",
"id", "parentId", "name", "type", "blobId", "size", "created", "modified",
// Stalwart omits shareWith/myRights from FileNode/get unless requested
// explicitly, so the share dialog and indicators can't see existing
// shares without naming them here (same as CALENDAR_PROPERTIES).
+5 -1
View File
@@ -835,7 +835,11 @@ export interface FileNode {
blobId: string | null;
size: number;
created: string;
updated: string;
// Last content/metadata change, server-maintained. The property is named
// `modified` in draft-ietf-jmap-filenode and in Stalwart - there is no
// `updated` on a FileNode. Asking for the wrong name silently yields
// undefined, which made the UI show the creation date forever (#700).
modified: string;
// JMAP Sharing (RFC 9670). Populated only when the server advertises the
// filenode capability and the properties are explicitly requested. A node is
// shared-out when `shareWith` has entries; `myRights` describes what the