Skip to content

Commit

Permalink
bug-fixed: if support group is a group, do not call getRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Nov 1, 2024
1 parent 44c2755 commit 3a3e3e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/pages/conversation-detail/conversation-detail.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ import {
TYPE_MSG_EMAIL,
TYPE_MSG_FORM,
CHANNEL_TYPE,
INFO_MESSAGE_TYPE
INFO_MESSAGE_TYPE,
TYPE_GROUP
} from 'src/chat21-core/utils/constants'
import {
checkPlatformIsMobile,
Expand Down Expand Up @@ -528,7 +529,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
this.initGroupsHandler();
this.startConversation();
this.initSubscriptions();
this.getLeadDetail()
this.getLeadDetail();
this.initializeTyping();
}
this.addEventsKeyboard()
Expand Down Expand Up @@ -971,7 +972,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit

getLeadDetail() {
const that = this;
if (this.channelType !== TYPE_DIRECT) {
if (this.channelType !== TYPE_DIRECT && this.channelType !== TYPE_GROUP) {
const tiledeskToken = this.tiledeskAuthService.getTiledeskToken();
const projectId = getProjectIdSelectedConversation(this.conversationWith)
this.logger.debug('[CONVS-DETAIL] getLeadDetail - section ', projectId)
Expand Down

0 comments on commit 3a3e3e0

Please sign in to comment.