From a76ddea7da5e2efc624d42300514807417af4d9b Mon Sep 17 00:00:00 2001 From: Scott Penrose Date: Wed, 14 Jun 2023 10:28:27 -0400 Subject: [PATCH] Remove popToRoot when tapping damus:// internal links --- damus/ContentView.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/damus/ContentView.swift b/damus/ContentView.swift index 4ea84c57..3d0d43e5 100644 --- a/damus/ContentView.swift +++ b/damus/ContentView.swift @@ -220,8 +220,6 @@ struct ContentView: View { } func open_event(ev: NostrEvent) { - popToRoot() - let thread = ThreadModel(event: ev, damus_state: damus_state!) navigationCoordinator.push(route: Route.Thread(thread: thread)) } @@ -232,16 +230,12 @@ struct ContentView: View { } func open_profile(id: String) { - popToRoot() - let profile_model = ProfileModel(pubkey: id, damus: damus_state!) let followers = FollowersModel(damus_state: damus_state!, target: id) navigationCoordinator.push(route: Route.Profile(profile: profile_model, followers: followers)) } func open_search(filt: NostrFilter) { - popToRoot() - let search = SearchModel(state: damus_state!, search: filt) navigationCoordinator.push(route: Route.Search(search: search)) }