notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 80648883bc6b3cae668acc0c36b44ced0e20031e
parent 5cd7adbd021abe3d9a79efcb1811a1f673a62b8e
Author: kernelkind <kernelkind@gmail.com>
Date:   Tue, 24 Feb 2026 18:51:05 -0500

feat(outbox-int): use outbox to send nip17 message

Signed-off-by: kernelkind <kernelkind@gmail.com>

Diffstat:
Mcrates/notedeck_messages/src/nip17/message.rs | 17++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/crates/notedeck_messages/src/nip17/message.rs b/crates/notedeck_messages/src/nip17/message.rs @@ -1,5 +1,4 @@ -use enostr::ClientMessage; -use notedeck::AppContext; +use notedeck::{AppContext, RelayType}; use crate::cache::{ConversationCache, ConversationId}; use crate::nip17::{build_rumor_json, giftwrap_message, OsRng}; @@ -44,17 +43,17 @@ pub fn send_conversation_message( else { continue; }; - let Some(giftwrap_json) = gifrwrap_note.json().ok() else { - continue; - }; if participant == selected_kp.pubkey { + let Some(giftwrap_json) = gifrwrap_note.json().ok() else { + continue; + }; + if let Err(e) = ctx.ndb.process_client_event(&giftwrap_json) { tracing::error!("Could not ingest event: {e:?}"); } } - match ClientMessage::event_json(giftwrap_json.clone()) { - Ok(msg) => ctx.legacy_pool.send(&msg), - Err(err) => tracing::error!("failed to build client message: {err}"), - }; + + let mut publisher = ctx.remote.publisher(ctx.accounts); + publisher.publish_note(&gifrwrap_note, RelayType::AccountsWrite); } }