From 9f52e2c2469cb875308d71c7acc9a1c2d84eff1c Mon Sep 17 00:00:00 2001 From: Joel Klabo Date: Thu, 23 Feb 2023 11:11:46 -0800 Subject: [PATCH] Fix Identical Participants in ParticipantView Changelog-Fixed: Fix duplicated participants in reply-to view Closes: #685 --- damus/Nostr/NostrEvent.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damus/Nostr/NostrEvent.swift b/damus/Nostr/NostrEvent.swift index f9a66edf..b3704543 100644 --- a/damus/Nostr/NostrEvent.swift +++ b/damus/Nostr/NostrEvent.swift @@ -835,7 +835,7 @@ func first_eref_mention(ev: NostrEvent, privkey: String?) -> Mention? { extension [ReferencedId] { var pRefs: [ReferencedId] { get { - self.filter { ref in + Set(self).filter { ref in ref.key == "p" } }