fix(core.gbapp): Fix bug in Teams handling.

This commit is contained in:
Rodrigo Rodriguez 2021-09-16 09:12:03 -03:00
parent 7a76750498
commit 7c446699eb
2 changed files with 4 additions and 6 deletions

View file

@ -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) {

View file

@ -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.