Skip to content

Commit

Permalink
home: add some more helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jb55 committed May 10, 2023
1 parent baed6ad commit 9093bde
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions damus/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,16 @@ struct ContentView: View {
self.thread_open = true
}

func open_profile(id: String) {
self.active_profile = id
self.profile_open = true
}

func open_search(filt: NostrFilter) {
self.active_search = filt
self.search_open = true
}

var body: some View {
VStack(alignment: .leading, spacing: 0) {
if let damus = self.damus_state {
Expand Down

0 comments on commit 9093bde

Please sign in to comment.