notedeck

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

commit 13277fd27327b78f7360f8dff049e7feffd9e12f
parent 4e44233079752388bd4f5bbb5a14a66e372ad05f
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 14 Dec 2025 06:51:08 -0800

giftwraps: support private reaction notifications

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/notedeck_columns/src/ui/timeline.rs | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/crates/notedeck_columns/src/ui/timeline.rs b/crates/notedeck_columns/src/ui/timeline.rs @@ -507,12 +507,13 @@ impl CompositeType { total_count: usize, referenced_type: ReferencedNoteType, notification: bool, + rumor: bool, ) -> String { let count = total_count - 1; match self { CompositeType::Reaction => { - reaction_description(loc, first_name, count, referenced_type) + reaction_description(loc, first_name, count, referenced_type, rumor) } CompositeType::Repost => repost_description( loc, @@ -533,15 +534,18 @@ fn reaction_description( first_name: &str, count: usize, referenced_type: ReferencedNoteType, + rumor: bool, ) -> String { + let privately = if rumor { "privately " } else { "" }; match referenced_type { ReferencedNoteType::Tagged => { if count == 0 { tr!( loc, - "{name} reacted to a note you were tagged in", + "{name} {privately}reacted to a note you were tagged in", "reaction from user to a note you were tagged in", - name = first_name + name = first_name, + privately = privately ) } else { tr_plural!( @@ -785,6 +789,7 @@ fn render_composite_entry( num_profiles, referenced_type, note_options.contains(NoteOptions::Notification), + underlying_note.is_rumor(), ); let galley = ui.painter().layout_no_wrap( description.clone(),