Fix bug where booster's names are not displayed
Changelog-Fixed: Fixed bug where booster's names are not displayed
This commit is contained in:
@@ -79,6 +79,7 @@ struct EventView: View {
|
|||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
let prof_model = ProfileModel(pubkey: event.pubkey, damus: damus)
|
let prof_model = ProfileModel(pubkey: event.pubkey, damus: damus)
|
||||||
let follow_model = FollowersModel(damus_state: damus, target: event.pubkey)
|
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)
|
let booster_profile = ProfileView(damus_state: damus, profile: prof_model, followers: follow_model)
|
||||||
|
|
||||||
NavigationLink(destination: booster_profile) {
|
NavigationLink(destination: booster_profile) {
|
||||||
@@ -86,11 +87,9 @@ struct EventView: View {
|
|||||||
Image(systemName: "arrow.2.squarepath")
|
Image(systemName: "arrow.2.squarepath")
|
||||||
.font(.footnote.weight(.bold))
|
.font(.footnote.weight(.bold))
|
||||||
.foregroundColor(Color.gray)
|
.foregroundColor(Color.gray)
|
||||||
if let prof = damus.profiles.lookup(id: event.pubkey) {
|
ProfileName(pubkey: event.pubkey, profile: prof, contacts: damus.contacts, show_friend_confirmed: true)
|
||||||
Text(Profile.displayName(profile: prof, pubkey: event.pubkey))
|
|
||||||
.font(.footnote.weight(.bold))
|
.font(.footnote.weight(.bold))
|
||||||
.foregroundColor(Color.gray)
|
.foregroundColor(Color.gray)
|
||||||
}
|
|
||||||
Text("Boosted")
|
Text("Boosted")
|
||||||
.font(.footnote.weight(.bold))
|
.font(.footnote.weight(.bold))
|
||||||
.foregroundColor(Color.gray)
|
.foregroundColor(Color.gray)
|
||||||
|
|||||||
Reference in New Issue
Block a user