damus

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

commit 96741af97b3ab33deba8643a2a34c8f725e4a483
parent 553dcb785c226f0a00e5af343843eaedb9f9589c
Author: Aidan O'Loan <aidanol@gmail.com>
Date:   Wed,  4 Jan 2023 09:52:51 -0500

Scroll to bottom when new DM received

Closes: #242
Closes: #241
Changelog-Fixed: Scroll to bottom when new DM received

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

diff --git a/damus/Views/DMChatView.swift b/damus/Views/DMChatView.swift @@ -27,6 +27,10 @@ struct DMChatView: View { } .onAppear { scroller.scrollTo("endblock") + }.onChange(of: dms.events.count) { _ in + withAnimation { + scroller.scrollTo("endblock") + } } } }