From e24f2cacb4f48455c52b6f142aa05cfbd75bc2fe Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Thu, 14 Dec 2023 11:01:25 +1300 Subject: [PATCH] When scanning a person list, trigger possible metadata fetch --- gossip-bin/src/ui/people/list.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gossip-bin/src/ui/people/list.rs b/gossip-bin/src/ui/people/list.rs index c4ce7fafe..4dd6abca5 100644 --- a/gossip-bin/src/ui/people/list.rs +++ b/gossip-bin/src/ui/people/list.rs @@ -497,10 +497,13 @@ fn refresh_list_data(app: &mut GossipUi, list: PersonList) { if let Ok(Some(person)) = GLOBALS.storage.read_person(pk) { people.push((person, *public)); } else { - let person = Person::new(pk.to_owned()); + let person = Person::new(*pk); let _ = GLOBALS.storage.write_person(&person, None); people.push((person, *public)); } + + // They are a person of interest (to as to fetch metadata if out of date) + GLOBALS.people.person_of_interest(*pk); } people.sort_by(|a, b| a.0.cmp(&b.0)); people