File tree 1 file changed +9
-3
lines changed
src/webchat-ui/components
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ import {
49
49
} from "../../webchat/helper/connectivity" ;
50
50
import { HomeScreen } from "./presentational/HomeScreen" ;
51
51
import { PrevConversationsList } from "./presentational/previous-conversations/ConversationsList" ;
52
- import { PrevConversationsState } from "../../webchat/store/previous-conversations/previous-conversations-reducer" ;
52
+ import {
53
+ PrevConversationsState ,
54
+ prevConversations ,
55
+ } from "../../webchat/store/previous-conversations/previous-conversations-reducer" ;
53
56
import { ChatEvent , Message , Typography } from "@cognigy/chat-components" ;
54
57
import { isConversationEnded } from "./presentational/previous-conversations/helpers" ;
55
58
import { ISendMessageOptions } from "../../webchat/store/messages/message-middleware" ;
@@ -1365,7 +1368,6 @@ export class WebchatUI extends React.PureComponent<
1365
1368
const isChatOptionsButtonVisible = config . settings . chatOptions . enabled && showChatScreen ;
1366
1369
1367
1370
const hideBackButton = showChatScreen && ! isHomeScreenEnabled ;
1368
-
1369
1371
return (
1370
1372
< RegularLayoutRoot >
1371
1373
{ ! isXAppOverlayOpen && (
@@ -1389,7 +1391,11 @@ export class WebchatUI extends React.PureComponent<
1389
1391
}
1390
1392
} }
1391
1393
isChatOptionsButtonVisible = {
1392
- isChatOptionsButtonVisible || ! ! showPrevConversations
1394
+ isChatOptionsButtonVisible ||
1395
+ ! ! (
1396
+ showPrevConversations &&
1397
+ Object . keys ( this . props . prevConversations ) . length
1398
+ )
1393
1399
}
1394
1400
logoUrl = {
1395
1401
! showChatOptionsScreen && ! showRatingScreen
You can’t perform that action at this time.
0 commit comments