From a7b169c0d38ea3dff3b48bf51cfc16b965c77b46 Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Tue, 31 Oct 2023 09:49:10 +0100 Subject: [PATCH] fix: send `OK` message for ephemeral events https://github.com/nostr-protocol/nips/blob/4b9f13d983245e4dd166f102308afc28b8bb1603/01.md?plain=1#L153 Signed-off-by: Greg Heartsfield --- src/db.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/db.rs b/src/db.rs index b7db56a..d0843fd 100644 --- a/src/db.rs +++ b/src/db.rs @@ -401,6 +401,9 @@ pub async fn db_writer( start.elapsed() ); event_write = true; + + // send OK message + notice_tx.try_send(Notice::saved(event.id)).ok(); } else { match repo.write_event(&event).await { Ok(updated) => {