This commit is contained in:
cheykrym 2025-12-11 20:42:26 +03:00
parent 95bf287085
commit f4e4a61192

View File

@ -36,9 +36,10 @@ struct PrivateChatView: View {
ZStack(alignment: .bottomTrailing) {
content
.onChange(of: viewModel.messages.count) { _ in
guard !viewModel.isLoadingMore else { return }
if isBottomAnchorVisible {
scrollToBottom(proxy: proxy)
}
}
.onChange(of: scrollToBottomTrigger) { _ in
scrollToBottom(proxy: proxy)
}