Compare commits

...

1 Commits

Author SHA1 Message Date
180c5ce7ee Fix nostr URL scheme to open properly even if there's already a different view open
Changelog-Fixed: Fix nostr URL scheme to open properly even if there's already a different view open
2023-05-14 14:32:56 -04:00

View File

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