fix msg
This commit is contained in:
parent
95bf287085
commit
f4e4a61192
@ -36,8 +36,9 @@ struct PrivateChatView: View {
|
|||||||
ZStack(alignment: .bottomTrailing) {
|
ZStack(alignment: .bottomTrailing) {
|
||||||
content
|
content
|
||||||
.onChange(of: viewModel.messages.count) { _ in
|
.onChange(of: viewModel.messages.count) { _ in
|
||||||
guard !viewModel.isLoadingMore else { return }
|
if isBottomAnchorVisible {
|
||||||
scrollToBottom(proxy: proxy)
|
scrollToBottom(proxy: proxy)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.onChange(of: scrollToBottomTrigger) { _ in
|
.onChange(of: scrollToBottomTrigger) { _ in
|
||||||
scrollToBottom(proxy: proxy)
|
scrollToBottom(proxy: proxy)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user