Skip to content

Commit

Permalink
fix: Fix default open chat window not working
Browse files Browse the repository at this point in the history
  • Loading branch information
tjtanjin committed Sep 29, 2024
1 parent f56b76b commit b1676ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hooks/internal/useBotEffectInternal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const useBotEffectInternal = () => {
isScrolling,
timeoutId,
hasFlowStarted,
setIsChatWindowOpen,
setTextAreaDisabled,
setAudioToggledOn,
setVoiceToggledOn,
Expand Down Expand Up @@ -107,9 +108,10 @@ export const useBotEffectInternal = () => {
setUpNotifications();
}, [])

// default setup for text area, audio and voice
// default setup for text area, chat window, audio and voice
useEffect(() => {
setTextAreaDisabled(settings.chatInput?.disabled as boolean);
setIsChatWindowOpen(settings.chatWindow?.defaultOpen as boolean);
setAudioToggledOn(settings.audio?.defaultToggledOn as boolean);

// delay required for default voice toggled on to work if it is set to true
Expand Down

0 comments on commit b1676ef

Please sign in to comment.