damus

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

commit 675903b768bc6c358b04afe0d796ca39ea14904c
parent 92035e17d3d92f385fcfd25531cc13a5227b2df5
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 23 Jan 2023 12:30:29 -0800

SelectedEventView: use EventProfile

Diffstat:
Mdamus/Views/Events/SelectedEventView.swift | 14+-------------
1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/damus/Views/Events/SelectedEventView.swift b/damus/Views/Events/SelectedEventView.swift @@ -20,19 +20,7 @@ struct SelectedEventView: View { let profile = damus.profiles.lookup(id: pubkey) VStack(alignment: .leading) { - HStack(alignment: .center) { - VStack { - let pmodel = ProfileModel(pubkey: pubkey, damus: damus) - let pv = ProfileView(damus_state: damus, profile: pmodel, followers: FollowersModel(damus_state: damus, target: pubkey)) - - NavigationLink(destination: pv) { - ProfilePicView(pubkey: pubkey, size: PFP_SIZE, highlight: .none, profiles: damus.profiles) - } - } - - EventProfileName(pubkey: pubkey, profile: profile, damus: damus, show_friend_confirmed: true, size: .selected) - } - + EventProfile(damus_state: damus, pubkey: pubkey, profile: profile, size: .normal) EventBody(damus_state: damus, event: event, size: .selected) if let mention = first_eref_mention(ev: event, privkey: damus.keypair.privkey) {