damus

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

commit 5fd5593595c47b8afedaa3c944c29589723eeb9a
parent 2e99e5acaac50c6334e7cceaf8e16f3abdf542c5
Author: William Casarin <jb55@jb55.com>
Date:   Mon,  2 Jan 2023 18:29:48 -0800

Revert "threadv2: Fix threads sometimes not loading on first click"

This reverts commit 2e99e5acaac50c6334e7cceaf8e16f3abdf542c5.

Diffstat:
Mdamus/Views/ThreadV2View.swift | 11++---------
1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/damus/Views/ThreadV2View.swift b/damus/Views/ThreadV2View.swift @@ -59,13 +59,6 @@ struct BuildThreadV2View: View { 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() { print("ThreadV2View: Unsubscribe all..") @@ -249,7 +242,7 @@ struct ThreadV2View: View { ForEach(thread.parentEvents, id: \.id) { event in NavigationLink(destination: BuildThreadV2View( damus: damus, - event: event + event_id: event.id )){ EventView( event: event, @@ -292,7 +285,7 @@ struct ThreadV2View: View { ForEach(thread.childEvents, id: \.id) { event in NavigationLink(destination: BuildThreadV2View( damus: damus, - event: event + event_id: event.id )){ EventView( event: event,