Fix shuffling when choosing users to reply to
Changelog-Fixed: Fix shuffling when choosing users to reply to Co-authored-by: William Casarin <jb55@jb55.com> Closes: #937
This commit is contained in:
committed by
William Casarin
parent
93580e5296
commit
6ed562ed24
@@ -724,7 +724,7 @@ func gather_reply_ids(our_pubkey: String, from: NostrEvent) -> [ReferencedId] {
|
||||
var ids = get_referenced_ids(tags: from.tags, key: "e").first.map { [$0] } ?? []
|
||||
|
||||
ids.append(ReferencedId(ref_id: from.id, relay_id: nil, key: "e"))
|
||||
ids.append(contentsOf: from.referenced_pubkeys.filter { $0.ref_id != our_pubkey })
|
||||
ids.append(contentsOf: Set(from.referenced_pubkeys.filter { $0.ref_id != our_pubkey }))
|
||||
if from.pubkey != our_pubkey {
|
||||
ids.append(ReferencedId(ref_id: from.pubkey, relay_id: nil, key: "p"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user