@@ -84,7 +84,7 @@ const Chat = () => {
84
84
const [ showSpeechInput , setShowSpeechInput ] = useState < boolean > ( false ) ;
85
85
const [ showSpeechOutputBrowser , setShowSpeechOutputBrowser ] = useState < boolean > ( false ) ;
86
86
const [ showSpeechOutputAzure , setShowSpeechOutputAzure ] = useState < boolean > ( false ) ;
87
- const [ showChatHistory , setShowChatHistory ] = useState < boolean > ( false ) ;
87
+ const [ showChatHistoryBrowser , setShowChatHistoryBrowser ] = useState < boolean > ( false ) ;
88
88
const audio = useRef ( new Audio ( ) ) . current ;
89
89
const [ isPlaying , setIsPlaying ] = useState ( false ) ;
90
90
@@ -110,7 +110,7 @@ const Chat = () => {
110
110
setShowSpeechInput ( config . showSpeechInput ) ;
111
111
setShowSpeechOutputBrowser ( config . showSpeechOutputBrowser ) ;
112
112
setShowSpeechOutputAzure ( config . showSpeechOutputAzure ) ;
113
- setShowChatHistory ( config . showChatHistory ) ;
113
+ setShowChatHistoryBrowser ( config . showChatHistoryBrowser ) ;
114
114
} ) ;
115
115
} ;
116
116
@@ -160,7 +160,7 @@ const Chat = () => {
160
160
const client = useLogin ? useMsal ( ) . instance : undefined ;
161
161
const { loggedIn } = useContext ( LoginContext ) ;
162
162
163
- const historyProvider : HistoryProviderOptions = showChatHistory ? HistoryProviderOptions . IndexedDB : HistoryProviderOptions . None ;
163
+ const historyProvider : HistoryProviderOptions = showChatHistoryBrowser ? HistoryProviderOptions . IndexedDB : HistoryProviderOptions . None ;
164
164
const historyManager = useHistoryManager ( historyProvider ) ;
165
165
166
166
const makeApiRequest = async ( question : string ) => {
@@ -366,7 +366,7 @@ const Chat = () => {
366
366
</ Helmet >
367
367
< div className = { styles . commandsSplitContainer } >
368
368
< div className = { styles . commandsContainer } >
369
- { showChatHistory && < HistoryButton className = { styles . commandButton } onClick = { ( ) => setIsHistoryPanelOpen ( ! isHistoryPanelOpen ) } /> }
369
+ { showChatHistoryBrowser && < HistoryButton className = { styles . commandButton } onClick = { ( ) => setIsHistoryPanelOpen ( ! isHistoryPanelOpen ) } /> }
370
370
</ div >
371
371
< div className = { styles . commandsContainer } >
372
372
< ClearChatButton className = { styles . commandButton } onClick = { clearChat } disabled = { ! lastQuestionRef . current || isLoading } />
@@ -475,7 +475,7 @@ const Chat = () => {
475
475
/>
476
476
) }
477
477
478
- { showChatHistory && (
478
+ { showChatHistoryBrowser && (
479
479
< HistoryPanel
480
480
provider = { historyProvider }
481
481
isOpen = { isHistoryPanelOpen }
0 commit comments