Merge branch 'master' of https://github.com/GeneralBots/BotServer
This commit is contained in:
commit
6d68d212bf
5 changed files with 1576 additions and 1575 deletions
|
@ -255,7 +255,8 @@ export class GBConversationalService {
|
|||
}
|
||||
|
||||
public async sendEvent(min: GBMinInstance, step: GBDialogStep, name: string, value: Object): Promise<any> {
|
||||
if (!this.userMobile(step)) {
|
||||
if (!this.userMobile(step) &&
|
||||
step.context.activity.channelId !== 'msteams') {
|
||||
GBLog.info(`Sending event ${name}:${typeof value === 'object' ? JSON.stringify(value) :
|
||||
value ? value : ''} to client...`);
|
||||
const msg = MessageFactory.text('');
|
||||
|
|
|
@ -1350,7 +1350,7 @@
|
|||
} else {
|
||||
|
||||
const startDialog = user.hearOnDialog ?
|
||||
user.hecallbackarOnDialog :
|
||||
user.hearOnDialog :
|
||||
min.core.getParam(min.instance, 'Start Dialog', null);
|
||||
|
||||
if (text !== startDialog) {
|
||||
|
@ -1382,4 +1382,3 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -258,3 +258,4 @@ export class FeedbackDialog extends IGBDialog {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -188,9 +188,9 @@ export class AskDialog extends IGBDialog {
|
|||
const locale = step.context.activity.locale;
|
||||
|
||||
// Stops any content on projector.
|
||||
|
||||
if (step.context.activity.channelId !== 'msteams') {
|
||||
await min.conversationalService.sendEvent(min, step, 'stop', undefined);
|
||||
|
||||
}
|
||||
// Handle extra text from FAQ.
|
||||
|
||||
if (step.options && step.options.query) {
|
||||
|
|
|
@ -182,9 +182,9 @@ export class SecService extends GBService {
|
|||
|
||||
await CollectionUtil.asyncForEach(list, async item => {
|
||||
if (
|
||||
!(item !== undefined &&
|
||||
item !== undefined &&
|
||||
agentSystemId === undefined &&
|
||||
item !== userSystemId && await this.isAgentSystemId(item))
|
||||
item !== userSystemId && !await this.isAgentSystemId(item)
|
||||
) {
|
||||
// TODO: Optimize loop.
|
||||
agentSystemId = item;
|
||||
|
|
Loading…
Add table
Reference in a new issue