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

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

View file

@ -1226,7 +1226,7 @@ export class GBConversationalService {
} }
analytics.createMessage(min.instance.instanceId, conversation, null, text); analytics.createMessage(min.instance.instanceId, conversation, null, text);
if (member && !isNaN(member.id) && !member.id.startsWith('1000')) { if (!step && member && !isNaN(member.id) && !member.id.startsWith('1000')) {
const to = step.context.activity.group ? step.context.activity.group : member.id; const to = step.context.activity.group ? step.context.activity.group : member.id;
await min.whatsAppDirectLine.sendToDevice(to, text, step.context.activity.conversation.id); await min.whatsAppDirectLine.sendToDevice(to, text, step.context.activity.conversation.id);