make profiles and environment object

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-04-17 05:31:38 -07:00
parent f314a4163f
commit f2631bd086
6 changed files with 34 additions and 45 deletions

View File

@@ -12,6 +12,10 @@ struct Profile: Decodable {
let name: String?
let about: String?
let picture: String?
static func displayName(profile: Profile?, pubkey: String) -> String {
return profile?.name ?? String(pubkey.prefix(16))
}
}
enum NostrKind: Int {