From e2650a8bfcf2e525e11f7ba5bb32d627457527c8 Mon Sep 17 00:00:00 2001 From: Terry Yiu Date: Mon, 3 Mar 2025 10:32:16 -0500 Subject: [PATCH] Fix bug where profile view was showing more than just the notes and replies on the notes / notes & replies tabs Changelog-Fixed: Fix bug where profile view was showing more than just the notes and replies on the notes / notes & replies tabs Fixes: caa4bfe864da ("Fix bug where profile view was showing more than just the notes and replies on the notes / notes & replies tabs") Signed-off-by: Terry Yiu --- damus/Views/Profile/ProfileView.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/damus/Views/Profile/ProfileView.swift b/damus/Views/Profile/ProfileView.swift index 91a21b2e..4c15fc68 100644 --- a/damus/Views/Profile/ProfileView.swift +++ b/damus/Views/Profile/ProfileView.swift @@ -122,7 +122,10 @@ struct ProfileView: View { func content_filter(_ fstate: FilterState) -> ((NostrEvent) -> Bool) { var filters = ContentFilters.defaults(damus_state: damus_state) filters.append(fstate.filter) - if fstate == .conversations { + switch fstate { + case .posts, .posts_and_replies: + filters.append({ profile.pubkey == $0.pubkey }) + case .conversations: filters.append({ profile.conversation_events.contains($0.id) } ) } return ContentFilters(filters: filters).filter