Remove EmbeddedEventView

All embedded events are now just regular event views
This commit is contained in:
William Casarin
2023-04-18 10:42:56 -07:00
parent bff3c0dd52
commit 300cd87fc2
7 changed files with 18 additions and 71 deletions
+2 -6
View File
@@ -48,10 +48,6 @@ struct BuilderEventView: View {
return
}
guard nostr_event.known_kind == .text else {
return
}
if event != nil {
return
}
@@ -78,8 +74,8 @@ struct BuilderEventView: View {
let thread = ThreadModel(event: ev, damus_state: damus)
let dest = ThreadView(state: damus, thread: thread)
NavigationLink(destination: dest) {
EmbeddedEventView(damus_state: damus, event: event)
.padding(8)
EventView(damus: damus, event: event, options: .embedded)
.padding([.top, .bottom], 8)
}.buttonStyle(.plain)
} else {
ProgressView().padding()