mirror of
git://jb55.com/damus
synced 2024-10-06 11:43:21 +00:00
Fix json appearing in profile searches
Changelog-Fixed: Fix json appearing in profile searches Closes: #757 Fixes: #748
This commit is contained in:
parent
be1c03ad0e
commit
88aa713729
@ -75,22 +75,23 @@ struct SearchingEventView: View {
|
|||||||
self.search_state = .found(ev)
|
self.search_state = .found(ev)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
find_event(state: state, evid: evid, search_type: search_type, find_from: nil) { ev in
|
||||||
|
if let ev {
|
||||||
|
self.search_state = .found(ev)
|
||||||
|
} else {
|
||||||
|
self.search_state = .not_found
|
||||||
|
}
|
||||||
|
}
|
||||||
case .profile:
|
case .profile:
|
||||||
if state.profiles.lookup(id: evid) != nil {
|
find_event(state: state, evid: evid, search_type: search_type, find_from: nil) { _ in
|
||||||
self.search_state = .found_profile(evid)
|
if state.profiles.lookup(id: evid) != nil {
|
||||||
return
|
self.search_state = .found_profile(evid)
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
self.search_state = .not_found
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
find_event(state: state, evid: evid, search_type: search_type, find_from: nil) { ev in
|
|
||||||
|
|
||||||
if let ev {
|
|
||||||
self.search_state = .found(ev)
|
|
||||||
} else {
|
|
||||||
self.search_state = .not_found
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user