damus

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

commit af407f7eeaddd817c301abdc4c44176505dde2a1
parent ac2e7d108d5ebfd8f75896f79fd03be2c4dd51ce
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  3 May 2023 16:11:38 -0700

Home now dismisses reactions view

Changelog-Fixed: Home now dismisses reactions view

Diffstat:
Mdamus/Views/ReactionsView.swift | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/damus/Views/ReactionsView.swift b/damus/Views/ReactionsView.swift @@ -11,6 +11,8 @@ struct ReactionsView: View { let damus_state: DamusState @StateObject var model: ReactionsModel + @Environment(\.dismiss) var dismiss + var body: some View { ScrollView { LazyVStack { @@ -27,6 +29,9 @@ struct ReactionsView: View { .onDisappear { model.unsubscribe() } + .onReceive(handle_notify(.switched_timeline)) { _ in + dismiss() + } } }