notedeck

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

commit 041e333a5c1ca5fd2800f9d37baa41ad4a8ed872
parent 48a52d38601826e3e5bffacfa7376b58187fc0f7
Author: kernelkind <kernelkind@gmail.com>
Date:   Fri, 17 Oct 2025 15:14:10 -0400

feat(ui-state): add `reaction_sent_id`

will be used in the UI for whether to show the filled/unfilled
react icon in the actionbar. Temporary until ndb metadata lands

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

Diffstat:
Mcrates/notedeck/src/note/mod.rs | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/crates/notedeck/src/note/mod.rs b/crates/notedeck/src/note/mod.rs @@ -212,3 +212,9 @@ pub fn event_tag<'a>(ev: &nostrdb::Note<'a>, name: &str) -> Option<&'a str> { tag.get_str(1) }) } + +/// Temporary way of checking whether a user has sent a reaction. +/// Should be replaced with nostrdb metadata +pub fn reaction_sent_id(sender_pk: &enostr::Pubkey, note_reacted_to: &[u8; 32]) -> egui::Id { + egui::Id::new(("sent-reaction-id", note_reacted_to, sender_pk)) +}