From 4a045ac1407987f783976fcf2e8b2c1327650a27 Mon Sep 17 00:00:00 2001 From: cheykrym Date: Thu, 11 Dec 2025 21:02:12 +0300 Subject: [PATCH] fix chat --- yobble/Views/Chat/PrivateChatView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yobble/Views/Chat/PrivateChatView.swift b/yobble/Views/Chat/PrivateChatView.swift index 1618c2d..f478c3c 100644 --- a/yobble/Views/Chat/PrivateChatView.swift +++ b/yobble/Views/Chat/PrivateChatView.swift @@ -98,6 +98,8 @@ struct PrivateChatView: View { .onChange(of: viewModel.isInitialLoading) { isLoading in if isLoading { hasPositionedToBottom = false + } else if !viewModel.messages.isEmpty { + scrollToBottomTrigger = .init() } } .safeAreaInset(edge: .bottom) {