mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
Fix: Hide prechat for sessions inititated with setUser (#1914)
This commit is contained in:
committed by
GitHub
parent
484c32fae3
commit
3043ee5058
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user