allow models to fetch profiles when they get stale

This commit is contained in:
Bryan Montz
2023-05-15 08:33:35 -05:00
parent d58a1e0ba3
commit 91113fbc6d
2 changed files with 4 additions and 14 deletions

View File

@@ -24,7 +24,7 @@ class FollowingModel {
var f = NostrFilter.filter_kinds([NostrKind.metadata.rawValue])
f.authors = self.contacts.reduce(into: Array<String>()) { acc, pk in
// don't fetch profiles we already have
if damus_state.profiles.lookup(id: pk) != nil {
if damus_state.profiles.has_fresh_profile(id: pk) {
return
}
acc.append(pk)