media/trust: always show if its yourself

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-07-14 19:18:17 -07:00
parent 28065ec4a3
commit c94a418474

View File

@@ -301,11 +301,19 @@ pub fn render_note_contents(
ui.add_space(2.0);
let carousel_id = egui::Id::new(("carousel", note.key().expect("expected tx note")));
let trusted_media = note_context
.accounts
.get_selected_account()
.is_following(note.pubkey())
== IsFollowing::Yes;
let is_self = note.pubkey()
== note_context
.accounts
.get_selected_account()
.key
.pubkey
.bytes();
let trusted_media = is_self
|| note_context
.accounts
.get_selected_account()
.is_following(note.pubkey())
== IsFollowing::Yes;
media_action = image_carousel(
ui,