Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion damus/Features/Follows/Models/Contacts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ class Contacts {
return Array((pubkey_to_our_friends[pubkey] ?? Set()))
}

/// Filters timeline events to authors the user follows, while still allowing the user's own events through.
var friend_filter: (NostrEvent) -> Bool {
{ [weak self] ev in
guard let self else { return false }
return self.is_friend(ev.pubkey)
return self.is_friend_or_self(ev.pubkey)
}
}
}
Expand Down
Loading