From 521b0aedabc0a74999e5779e6892ffdbdbf3cd16 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sat, 31 Oct 2026 18:52:29 +0100 Subject: [PATCH] fix: stop naming a jmap metadata property in the demo client --- lib/demo/demo-client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/demo/demo-client.ts b/lib/demo/demo-client.ts index f1f236b91..0eaa08e6b 100644 --- a/lib/demo/demo-client.ts +++ b/lib/demo/demo-client.ts @@ -66,7 +66,7 @@ export class DemoJMAPClient implements IJMAPClient { /** Bulwark's shared Inbox metadata by account and key; only accounts listed here have any. */ private metadata: Record>; /** The same for each account's private metadata. */ - private privateMetadata: Record> = {}; + private ownMetadata: Record> = {}; private blobStore = new Map(); private scheduledSubmissions = new Map(); private connectionCallback: ((connected: boolean) => void) | null = null; @@ -347,7 +347,7 @@ export class DemoJMAPClient implements IJMAPClient { async getBulwarkMetadata(accountId?: string, options?: { private?: boolean }): Promise | null> { if (!this.supportsBulwarkMetadata(accountId)) return null; - const store = options?.private ? this.privateMetadata : this.metadata; + const store = options?.private ? this.ownMetadata : this.metadata; return structuredClone(store[accountId!] ?? {}); } @@ -356,7 +356,7 @@ export class DemoJMAPClient implements IJMAPClient { if (value !== null && metadataValueBytes(value) > MAX_METADATA_ENTRY_BYTES) { throw new MetadataTooLargeError(`The entry is larger than ${MAX_METADATA_ENTRY_BYTES} bytes`); } - const store = options?.private ? this.privateMetadata : this.metadata; + const store = options?.private ? this.ownMetadata : this.metadata; const entries = (store[accountId!] ??= {}); if (value === null) delete entries[key]; else entries[key] = structuredClone(value);