commit 6079b2f62060e55a9cfa0342d5600fbd28b25efa
parent a7aee616c74ad1c242027723be3115c946dd02f1
Author: William Casarin <jb55@jb55.com>
Date: Fri, 23 Dec 2022 15:24:55 -0800
remove old comment
Diffstat:
1 file changed, 0 insertions(+), 33 deletions(-)
diff --git a/damus/Views/EventDetailView.swift b/damus/Views/EventDetailView.swift
@@ -308,39 +308,6 @@ func scroll_to_event(scroller: ScrollViewProxy, id: String, delay: Double, anima
}
}
-
- /*
- func OldEventView(proxy: ScrollViewProxy, ev: NostrEvent, highlight: Highlight, collapsed_events: [CollapsedEvent]) -> some View {
- Group {
- if ev.id == thread.event.id {
- EventView(event: ev, highlight: .main, has_action_bar: true)
- .onAppear() {
- scroll_to_event(scroller: proxy, id: ev.id, delay: 0.5, animate: true)
- }
- .onTapGesture {
- print_event(ev)
- let any = any_collapsed(collapsed_events)
- if (collapsed && any) || (!collapsed && !any) {
- toggle_collapse_thread(scroller: proxy, id: ev.id)
- }
- }
- } else {
- if !(self.collapsed && highlight.is_none) {
- EventView(event: ev, highlight: collapsed ? .none : highlight, has_action_bar: true)
- .onTapGesture {
- print_event(ev)
- if !collapsed {
- toggle_collapse_thread(scroller: proxy, id: ev.id)
- }
- thread.event = ev
- }
- }
- }
- }
- }
- */
-
-
extension Collection {
/// Returns the element at the specified index if it is within bounds, otherwise nil.