media/trust: always show if its yourself
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -301,11 +301,19 @@ pub fn render_note_contents(
|
|||||||
ui.add_space(2.0);
|
ui.add_space(2.0);
|
||||||
let carousel_id = egui::Id::new(("carousel", note.key().expect("expected tx note")));
|
let carousel_id = egui::Id::new(("carousel", note.key().expect("expected tx note")));
|
||||||
|
|
||||||
let trusted_media = note_context
|
let is_self = note.pubkey()
|
||||||
.accounts
|
== note_context
|
||||||
.get_selected_account()
|
.accounts
|
||||||
.is_following(note.pubkey())
|
.get_selected_account()
|
||||||
== IsFollowing::Yes;
|
.key
|
||||||
|
.pubkey
|
||||||
|
.bytes();
|
||||||
|
let trusted_media = is_self
|
||||||
|
|| note_context
|
||||||
|
.accounts
|
||||||
|
.get_selected_account()
|
||||||
|
.is_following(note.pubkey())
|
||||||
|
== IsFollowing::Yes;
|
||||||
|
|
||||||
media_action = image_carousel(
|
media_action = image_carousel(
|
||||||
ui,
|
ui,
|
||||||
|
|||||||
Reference in New Issue
Block a user