damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 587819c8eb6febc204e4a76250617e78d154ac05
parent 8954c1c245717193e7012485d632e3eed6e07533
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 20 Feb 2023 13:51:54 -0800

Always switch to realtime mode on scroll-to-top, remove realtime indicator

Diffstat:
Mdamus/Views/TimelineView.swift | 9+--------
1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/damus/Views/TimelineView.swift b/damus/Views/TimelineView.swift @@ -53,20 +53,13 @@ struct TimelineView: View { return Color.clear }) } - .overlay( - Rectangle() - .fill(RECTANGLE_GRADIENT.opacity(realtime_bar_opacity)) - .offset(y: -1) - .frame(height: events.should_queue ? 0 : 8) - , - alignment: .top - ) .buttonStyle(BorderlessButtonStyle()) .coordinateSpace(name: "scroll") .onReceive(NotificationCenter.default.publisher(for: .scroll_to_top)) { _ in guard let event = events.events.filter(self.filter).first else { return } + self.events.should_queue = false events.flush() scroll_to_event(scroller: scroller, id: event.id, delay: 0.0, animate: true, anchor: .top) }