We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12e0844 commit 2ac4d4bCopy full SHA for 2ac4d4b
1 file changed
Core/Sources/ChatGPTChatTab/ChatPanel.swift
@@ -219,8 +219,11 @@ struct ChatPanelMessages: View {
219
EmptyView()
220
.onChange(of: viewStore.state.isReceivingMessage) { isReceiving in
221
if isReceiving {
222
- pinnedToBottom = true
223
- scrollToBottom()
+ Task {
+ pinnedToBottom = true
224
+ await Task.yield()
225
+ scrollToBottom()
226
+ }
227
}
228
229
.onChange(of: viewStore.state.lastMessage) { _ in
0 commit comments