mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 16:31:18 +00:00
Fix people needing relay lists to include all people lists, not just Followed
This commit is contained in:
parent
a6d59f7bd8
commit
7b97349b00
@ -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)
|
||||
}) {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user