Fix people needing relay lists to include all people lists, not just Followed

This commit is contained in:
Mike Dilger 2023-12-04 11:10:49 +13:00
parent a6d59f7bd8
commit 7b97349b00
2 changed files with 8 additions and 1 deletions

View File

@ -198,7 +198,7 @@ impl People {
.read_setting_relay_list_becomes_stale_hours() as i64;
if let Ok(vec) = GLOBALS.storage.filter_people(|p| {
p.is_in_list(PersonList::Followed)
p.is_subscribed_to()
&& p.relay_list_last_received < stale
&& among_these.contains(&p.pubkey)
}) {

View File

@ -124,6 +124,13 @@ impl Person2 {
.is_person_in_list(&self.pubkey, list)
.unwrap_or(false)
}
pub fn is_subscribed_to(&self) -> bool {
GLOBALS
.storage
.is_person_subscribed_to(&self.pubkey)
.unwrap_or(false)
}
}
impl PartialEq for Person2 {