Fix: Hide prechat for sessions inititated with setUser (#1914)
This commit is contained in:
parent
484c32fae3
commit
3043ee5058
10 changed files with 105 additions and 6 deletions
|
@ -114,13 +114,15 @@ export default {
|
|||
conversationSize: 'conversation/getConversationSize',
|
||||
groupedMessages: 'conversation/getGroupedConversation',
|
||||
isFetchingList: 'conversation/getIsFetchingList',
|
||||
currentUser: 'contacts/getCurrentUser',
|
||||
}),
|
||||
currentView() {
|
||||
const { email: currentUserEmail = '' } = this.currentUser;
|
||||
if (this.isHeaderCollapsed) {
|
||||
if (this.conversationSize) {
|
||||
return 'messageView';
|
||||
}
|
||||
if (this.preChatFormEnabled) {
|
||||
if (this.preChatFormEnabled && !currentUserEmail) {
|
||||
return 'preChatFormView';
|
||||
}
|
||||
return 'messageView';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue