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
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user