following view

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-05-16 16:23:34 -07:00
parent 713effdc35
commit 874d15df45
8 changed files with 168 additions and 37 deletions

View File

@@ -69,8 +69,7 @@ struct EventView: View {
let profile = damus.profiles.lookup(id: event.pubkey)
VStack {
let pmodel = ProfileModel(pubkey: event.pubkey, damus: damus)
let fs = damus.contacts.follow_state(event.pubkey)
let pv = ProfileView(damus: damus, follow_state: fs, profile: pmodel)
let pv = ProfileView(damus_state: damus, profile: pmodel)
NavigationLink(destination: pv) {
ProfilePicView(pubkey: event.pubkey, size: PFP_SIZE!, highlight: highlight, image_cache: damus.image_cache, profiles: damus.profiles)
@@ -121,10 +120,16 @@ struct EventView: View {
Label("Copy Text", systemImage: "doc.on.doc")
}
Button {
UIPasteboard.general.string = "@" + event.pubkey
} label: {
Label("Copy User ID", systemImage: "tag")
}
Button {
UIPasteboard.general.string = "&" + event.id
} label: {
Label("Copy ID", systemImage: "tag")
Label("Copy Note ID", systemImage: "tag")
}
Button {