notedeck

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

commit f3f5026719b5389374864d87921c972de775f6fa
parent d9b1de9d2c96fc0239ccd9cd68760e632521e28f
Author: Fernando López Guevara <fernando.lguevara@gmail.com>
Date:   Mon,  2 Jun 2025 12:36:42 -0300

fix: skip blurring for user's own images

Diffstat:
Mcrates/notedeck_columns/src/ui/timeline.rs | 3++-
Mcrates/notedeck_ui/src/contacts.rs | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/crates/notedeck_columns/src/ui/timeline.rs b/crates/notedeck_columns/src/ui/timeline.rs @@ -410,7 +410,8 @@ impl<'a, 'd> TimelineTabView<'a, 'd> { let zapping_acc = self .cur_acc .as_ref() - .filter(|_| self.note_context.current_account_has_wallet); + .filter(|_| self.note_context.current_account_has_wallet) + .or(self.cur_acc.as_ref()); notedeck_ui::padding(8.0, ui, |ui| { let resp = NoteView::new( diff --git a/crates/notedeck_ui/src/contacts.rs b/crates/notedeck_ui/src/contacts.rs @@ -17,7 +17,7 @@ pub fn trust_media_from_pk2( pk1: Option<&[u8; 32]>, pk2: &[u8; 32], ) -> bool { - pk1.map(|pk| pk1_is_following_pk2(ndb, txn, pk, pk2).unwrap_or(false)) + pk1.map(|pk| pk == pk2 || pk1_is_following_pk2(ndb, txn, pk, pk2).unwrap_or(false)) .unwrap_or(false) }