fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit 119c06949a - Show all commits

View file

@ -477,7 +477,7 @@ export class GBConversationalService {
break; break;
case State.InLineBreak1: case State.InLineBreak1:
if (c === '\n') { if (c === '\n') {
if (mobile === null) { if (!mobile) {
await step.context.sendActivity(currentText); await step.context.sendActivity(currentText);
} else { } else {
await this.sendToMobile(min, mobile, currentText); await this.sendToMobile(min, mobile, currentText);
@ -497,7 +497,7 @@ export class GBConversationalService {
case State.InEmbedBegin: case State.InEmbedBegin:
if (c === '=') { if (c === '=') {
if (currentText !== '') { if (currentText !== '') {
if (mobile === null) { if (!mobile) {
await step.context.sendActivity(currentText); await step.context.sendActivity(currentText);
} else { } else {
await this.sendToMobile(min, mobile, currentText); await this.sendToMobile(min, mobile, currentText);
@ -530,7 +530,7 @@ export class GBConversationalService {
case State.InImageBegin: case State.InImageBegin:
if (c === '[') { if (c === '[') {
if (currentText !== '') { if (currentText !== '') {
if (mobile === null) { if (!mobile) {
await step.context.sendActivity(currentText); await step.context.sendActivity(currentText);
} else { } else {
await this.sendToMobile(min, mobile, currentText); await this.sendToMobile(min, mobile, currentText);
@ -573,7 +573,7 @@ export class GBConversationalService {
} }
} }
if (currentText !== '') { if (currentText !== '') {
if (mobile === null) { if (!mobile) {
await step.context.sendActivity(currentText); await step.context.sendActivity(currentText);
} else { } else {
await this.sendToMobile(min, mobile, currentText); await this.sendToMobile(min, mobile, currentText);