event action bar, more detail view

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-04-16 11:32:42 -07:00
parent e48af81b75
commit 2676dea140
9 changed files with 116 additions and 44 deletions

View File

@@ -50,7 +50,7 @@ struct ContentView: View {
ForEach(events, id: \.id) { ev in
if ev.is_local && timeline == .debug || (timeline == .global && !ev.is_local) || (timeline == .friends && is_friend(ev.pubkey)) {
let profile: Profile? = profiles[ev.pubkey]?.profile
NavigationLink(destination: EventDetailView(event: ev, profile: profile)) {
NavigationLink(destination: EventDetailView(event: ev, profile: profile).navigationBarTitle("Note")) {
EventView(event: ev, profile: profile)
}
.buttonStyle(PlainButtonStyle())