damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 8242ca27d2ef3a0d28e2cf4a2e01b4215a4c72c2
parent c7baa153aff8e4d643dd8a3a58bb226a1d3890b6
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 17 Jul 2023 10:19:12 -0700

profile: make constructor args optional

This makes it easier to create one-off profiles for testing. eg:

Profile(name: "jb55")

Diffstat:
Mdamus/Nostr/Nostr.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Nostr/Nostr.swift b/damus/Nostr/Nostr.swift @@ -10,7 +10,7 @@ import Foundation class Profile: Codable { var value: [String: AnyCodable] - init(name: String?, display_name: String?, about: String?, picture: String?, banner: String?, website: String?, lud06: String?, lud16: String?, nip05: String?, damus_donation: Int?) { + init(name: String? = nil, display_name: String? = nil, about: String? = nil, picture: String? = nil, banner: String? = nil, website: String? = nil, lud06: String? = nil, lud16: String? = nil, nip05: String? = nil, damus_donation: Int? = nil) { self.value = [:] self.name = name self.display_name = display_name