fix(core.gbapp): Fix bug in Teams handling.
This commit is contained in:
parent
7a76750498
commit
7c446699eb
2 changed files with 4 additions and 6 deletions
|
@ -627,7 +627,7 @@ export class GBConversationalService {
|
|||
}
|
||||
|
||||
// TODO: Update botlib.
|
||||
public async routeNLP(step: GBDialogStep, min: GBMinInstance, text: string): Promise<Boolean> {
|
||||
public async routeNLP(step: GBDialogStep, min: GBMinInstance, text: string): Promise<boolean> {
|
||||
return false;
|
||||
}
|
||||
public async routeNLP2(step: GBDialogStep, min: GBMinInstance, text: string) {
|
||||
|
|
|
@ -894,11 +894,9 @@ export class GBMinService {
|
|||
// Skips if the bot is talking.
|
||||
const startDialog = min.core.getParam(min.instance, 'Start Dialog', null);
|
||||
|
||||
if (context.activity.type === 'conversationUpdate')
|
||||
{
|
||||
GBLog.info(`Bot installed on Teams.`);
|
||||
}
|
||||
else if (context.activity.type === 'conversationUpdate' &&
|
||||
if (context.activity.type === 'installationUpdate') {
|
||||
GBLog.info(`Bot installed on Teams.`);
|
||||
} else if (context.activity.type === 'conversationUpdate' &&
|
||||
context.activity.membersAdded.length > 0) {
|
||||
|
||||
// Check if a bot or a human participant is being added to the conversation.
|
||||
|
|
Loading…
Add table
Reference in a new issue