fix(core.gbapp): Start dialog now is called with no interruptions.

This commit is contained in:
Rodrigo Rodriguez 2021-03-30 17:53:38 -03:00
parent 9b785948cc
commit f66bbb8fce

View file

@ -1128,6 +1128,11 @@ export class GBMinService {
} else { } else {
const startDialog = user.hearOnDialog ?
user.hearOnDialog :
min.core.getParam(min.instance, 'Start Dialog', null);
if (text !== startDialog) {
let nextDialog = null; let nextDialog = null;
await CollectionUtil.asyncForEach(min.appPackages, async (e: IGBPackage) => { await CollectionUtil.asyncForEach(min.appPackages, async (e: IGBPackage) => {
nextDialog = await e.onExchangeData(min, 'handleAnswer', { nextDialog = await e.onExchangeData(min, 'handleAnswer', {
@ -1143,6 +1148,8 @@ export class GBMinService {
user: user ? user.dataValues : null, user: user ? user.dataValues : null,
message: message message: message
}); });
}
} }
} }
} }