File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
AITypingIndicatorView/hooks Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,17 @@ export const useAIState = <
3333 }
3434
3535 const indicatorChangedListener = channel . on (
36- 'ai_indicator_changed ' ,
36+ 'ai_indicator.update ' ,
3737 ( event : Event < StreamChatGenerics > ) => {
3838 const { cid } = event ;
39- const state = event . state as AIStateType ;
39+ const state = event . ai_state as AIStateType ;
4040 if ( channel . cid === cid ) {
4141 setAiState ( state ) ;
4242 }
4343 } ,
4444 ) ;
4545
46- const indicatorClearedListener = channel . on ( 'ai_indicator_clear ' , ( event ) => {
46+ const indicatorClearedListener = channel . on ( 'ai_indicator.clear ' , ( event ) => {
4747 const { cid } = event ;
4848 if ( channel . cid === cid ) {
4949 setAiState ( AIStates . Idle ) ;
Original file line number Diff line number Diff line change @@ -734,7 +734,7 @@ const MessageInputWithContext = <
734734 const { aiState } = useAIState ( channel ) ;
735735
736736 const stopGenerating = useCallback (
737- ( ) => channel . sendEvent ( { type : 'stop_generating ' } ) ,
737+ ( ) => channel . sendEvent ( { type : 'ai_indicator.stop ' } ) ,
738738 [ channel ] ,
739739 ) ;
740740 const shouldDisplayStopAIGeneration = [ AIStates . Thinking , AIStates . Generating ] . includes ( aiState ) ;
You can’t perform that action at this time.
0 commit comments