mirror of
git://jb55.com/damus
synced 2024-09-19 19:46:51 +00:00
collapse the thread when a note is selected
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
392af009f8
commit
c9d3ed361f
@ -112,6 +112,9 @@ struct EventDetailView: View {
|
|||||||
if !(self.collapsed && highlight.is_none) {
|
if !(self.collapsed && highlight.is_none) {
|
||||||
EventView(event: ev, highlight: collapsed ? .none : highlight, has_action_bar: true)
|
EventView(event: ev, highlight: collapsed ? .none : highlight, has_action_bar: true)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
|
if !collapsed {
|
||||||
|
toggle_collapse_thread(scroller: proxy, id: ev.id)
|
||||||
|
}
|
||||||
self.event = ev
|
self.event = ev
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user