Deduplicate users in group notifications

Changelog-Fixed: Deduplicate users in notifications
Closes: #1326
This commit is contained in:
2023-06-25 23:35:01 -04:00
committed by William Casarin
parent 2046fe5502
commit cfe14fac23
8 changed files with 84 additions and 36 deletions

View File

@@ -38,7 +38,7 @@ enum DisplayName {
func parse_display_name(profile: Profile?, pubkey: String) -> DisplayName {
if pubkey == "anon" {
if pubkey == ANON_PUBKEY {
return .one(NSLocalizedString("Anonymous", comment: "Placeholder display name of anonymous user."))
}

View File

@@ -9,6 +9,7 @@ import Foundation
import secp256k1
let PUBKEY_HRP = "npub"
let ANON_PUBKEY = "anon"
struct FullKeypair: Equatable {
let pubkey: String