fix msg
This commit is contained in:
parent
95bf287085
commit
f4e4a61192
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user