damus

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

commit 50e445201616a256cf83fc503aa8c5dca021b63a
parent a30a79b1fcf80eb83a738bcf2f5775f487c021da
Author: Terry Yiu <963907+tyiu@users.noreply.github.com>
Date:   Sun, 14 May 2023 14:12:49 -0400

Fix nostr URL scheme to open properly even if there's already a different view open

Closes: #1130
Changelog-Fixed: Fix nostr URL scheme to open properly even if there's already a different view open

Diffstat:
Mdamus/ContentView.swift | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/damus/ContentView.swift b/damus/ContentView.swift @@ -240,6 +240,7 @@ struct ContentView: View { } func open_event(ev: NostrEvent) { + popToRoot() self.active_event = ev self.thread_open = true } @@ -250,11 +251,13 @@ struct ContentView: View { } func open_profile(id: String) { + popToRoot() self.active_profile = id self.profile_open = true } func open_search(filt: NostrFilter) { + popToRoot() self.active_search = filt self.search_open = true }