damus

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

commit d84320bb2cf36f9c702ce6f9fde4e0bacebdf0ac
parent 90bbd90a31933433a36d2e5fcb5383a2420af279
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 26 Dec 2022 10:31:01 -0800

Fix bug where booster's names are not displayed

Changelog-Fixed: Fixed bug where booster's names are not displayed

Diffstat:
Mdamus/Views/EventView.swift | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/damus/Views/EventView.swift b/damus/Views/EventView.swift @@ -79,6 +79,7 @@ struct EventView: View { VStack(alignment: .leading) { let prof_model = ProfileModel(pubkey: event.pubkey, damus: damus) let follow_model = FollowersModel(damus_state: damus, target: event.pubkey) + let prof = damus.profiles.lookup(id: event.pubkey) let booster_profile = ProfileView(damus_state: damus, profile: prof_model, followers: follow_model) NavigationLink(destination: booster_profile) { @@ -86,11 +87,9 @@ struct EventView: View { Image(systemName: "arrow.2.squarepath") .font(.footnote.weight(.bold)) .foregroundColor(Color.gray) - if let prof = damus.profiles.lookup(id: event.pubkey) { - Text(Profile.displayName(profile: prof, pubkey: event.pubkey)) + ProfileName(pubkey: event.pubkey, profile: prof, contacts: damus.contacts, show_friend_confirmed: true) .font(.footnote.weight(.bold)) .foregroundColor(Color.gray) - } Text("Boosted") .font(.footnote.weight(.bold)) .foregroundColor(Color.gray)