|
@ -59,13 +59,6 @@ struct BuildThreadV2View: View { |
|
|
self.event_id = event_id |
|
|
self.event_id = event_id |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
init(damus: DamusState, event: NostrEvent) { |
|
|
|
|
|
self.damus = damus |
|
|
|
|
|
self.event_id = event.id |
|
|
|
|
|
self._current_event = State(initialValue: event) |
|
|
|
|
|
handle_current_events(ev: event) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func unsubscribe_all() { |
|
|
func unsubscribe_all() { |
|
|
print("ThreadV2View: Unsubscribe all..") |
|
|
print("ThreadV2View: Unsubscribe all..") |
|
|
|
|
|
|
|
@ -249,7 +242,7 @@ struct ThreadV2View: View { |
|
|
ForEach(thread.parentEvents, id: \.id) { event in |
|
|
ForEach(thread.parentEvents, id: \.id) { event in |
|
|
NavigationLink(destination: BuildThreadV2View( |
|
|
NavigationLink(destination: BuildThreadV2View( |
|
|
damus: damus, |
|
|
damus: damus, |
|
|
event: event |
|
|
event_id: event.id |
|
|
)){ |
|
|
)){ |
|
|
EventView( |
|
|
EventView( |
|
|
event: event, |
|
|
event: event, |
|
@ -292,7 +285,7 @@ struct ThreadV2View: View { |
|
|
ForEach(thread.childEvents, id: \.id) { event in |
|
|
ForEach(thread.childEvents, id: \.id) { event in |
|
|
NavigationLink(destination: BuildThreadV2View( |
|
|
NavigationLink(destination: BuildThreadV2View( |
|
|
damus: damus, |
|
|
damus: damus, |
|
|
event: event |
|
|
event_id: event.id |
|
|
)){ |
|
|
)){ |
|
|
EventView( |
|
|
EventView( |
|
|
event: event, |
|
|
event: event, |
|
|