From a9b627c4b649fd2c1094012341d752b23402d785 Mon Sep 17 00:00:00 2001 From: Michael Neale Date: Thu, 4 Jun 2026 09:53:26 +1000 Subject: [PATCH] fix(serverless): log encrypted-recipient resolution on send (diagnostic) --- desktop/src-tauri/src/commands/messages.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/desktop/src-tauri/src/commands/messages.rs b/desktop/src-tauri/src/commands/messages.rs index 35e6c078b4..cbb20acf20 100644 --- a/desktop/src-tauri/src/commands/messages.rs +++ b/desktop/src-tauri/src/commands/messages.rs @@ -434,7 +434,12 @@ pub async fn send_channel_message( // (the encrypted inner event), so threading is preserved without leaking // the reply as plaintext to the relays. if kind_num == sprout_core::kind::KIND_STREAM_MESSAGE { - if let Some(members) = encrypted_recipients(&state, &channel_id).await? { + let recip = encrypted_recipients(&state, &channel_id).await?; + eprintln!( + "sprout-desktop: [serverless] send to {channel_id}: encrypted_recipients = {:?}", + recip.as_ref().map(|m| m.len()) + ); + if let Some(members) = recip { // Build the in-rumor thread ref from caller-supplied ids (no relay // lookup — the parent rumor isn't stored plaintext on the relay). let thread_ref = match &parent_event_id {