From cb61ed5dbe4a5813f2fac582009873dd0b649af0 Mon Sep 17 00:00:00 2001 From: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com> Date: Tue, 28 Jul 2026 18:08:09 -0500 Subject: [PATCH] chore(desktop): satisfy file size ratchet Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com> --- desktop/src-tauri/src/nostr_convert.rs | 11 +++-------- desktop/src/shared/api/types.ts | 4 ++-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/desktop/src-tauri/src/nostr_convert.rs b/desktop/src-tauri/src/nostr_convert.rs index b303edff3..cebb575c9 100644 --- a/desktop/src-tauri/src/nostr_convert.rs +++ b/desktop/src-tauri/src/nostr_convert.rs @@ -280,10 +280,7 @@ pub fn channel_members_from_event(event: &Event) -> Result Result { let v: Value = serde_json::from_str(&event.content) .map_err(|e| format!("kind:0 content is not valid JSON: {e}"))?; @@ -309,10 +306,8 @@ pub fn profile_info_from_event(event: &Event) -> Result { }) } -/// Convert multiple kind:0 events to [`UsersBatchResponse`]. -/// -/// `requested_pubkeys` lets us populate `missing` for any pubkey that had -/// no metadata event in the input set. +/// Convert the most recent kind:0 event per pubkey to [`UsersBatchResponse`]. +/// Requested pubkeys without metadata are returned separately. pub fn users_batch_from_events( events: &[Event], requested_pubkeys: &[String], diff --git a/desktop/src/shared/api/types.ts b/desktop/src/shared/api/types.ts index 5c9a20f5f..20ffe32bc 100644 --- a/desktop/src/shared/api/types.ts +++ b/desktop/src/shared/api/types.ts @@ -108,7 +108,7 @@ export type { Identity, IdentityStorage } from "./identityTypes"; export type Profile = { pubkey: string; displayName: string | null; - /** Relay-authoritative corporate display identity bound to this pubkey. */ + /** Relay-authoritative display identity bound to this pubkey. */ verifiedName?: string | null; avatarUrl: string | null; about: string | null; @@ -123,7 +123,7 @@ export type Profile = { export type UserProfileSummary = { displayName: string | null; - /** Relay-authoritative corporate display identity bound to this pubkey. */ + /** Relay-authoritative display identity bound to this pubkey. */ verifiedName?: string | null; /** Kind-0 `name` field, kept separate from `displayName` so @mention text * can be matched against either alias (agents/CLI resolve mentions against