File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
ui/packages/platform/src/pages/Bot/Messages Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,8 @@ export const Messages = React.memo(() => {
125
125
loading : isLoading ,
126
126
wsLoading : isWaitingForAnswer ,
127
127
stateMessage,
128
- currentStreamMessage
128
+ currentStreamMessage,
129
+ isStreamingInProcess
129
130
} = useAiBot ( ) ;
130
131
131
132
const rootRef = useRef < HTMLDivElement > ( null ) ;
@@ -174,10 +175,10 @@ export const Messages = React.memo(() => {
174
175
} , [ prevUserMessagesCount , userMessagesCount ] ) ;
175
176
176
177
useEffect ( ( ) => {
177
- if ( ! isLoading ) {
178
+ if ( ! isLoading && ! isStreamingInProcess ) {
178
179
scrollBottomIfNeed ( ) ;
179
180
}
180
- } , [ isLoading , scrollBottomIfNeed ] ) ;
181
+ } , [ isLoading , scrollBottomIfNeed , isStreamingInProcess ] ) ;
181
182
182
183
useEffect ( ( ) => {
183
184
const updateTimes = ( ) => {
You can’t perform that action at this time.
0 commit comments