1
0
mirror of git://jb55.com/damus synced 2024-09-18 19:23:49 +00:00

collapse the thread when a note is selected

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2022-04-17 14:24:51 -07:00
parent 392af009f8
commit c9d3ed361f

View File

@ -112,6 +112,9 @@ struct EventDetailView: View {
if !(self.collapsed && highlight.is_none) {
EventView(event: ev, highlight: collapsed ? .none : highlight, has_action_bar: true)
.onTapGesture {
if !collapsed {
toggle_collapse_thread(scroller: proxy, id: ev.id)
}
self.event = ev
}
}