Skip to content

Commit

Permalink
new(basic.gblib): SEND FILE pdf as temporary images.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Oct 3, 2024
1 parent 7ed8979 commit 16aae3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/basic.gblib/services/DialogKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ export class DialogKeywords {
GBLogEx.info(min, `TALK '${text} step:${step}'.`);

if (user) {
// TODO: const translate = user ? user.basicOptions.translatorOn : false;

text = await min.conversationalService.translate(
min,
text,
Expand Down
9 changes: 5 additions & 4 deletions packages/core.gbapp/services/GBConversationalService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,6 @@ export class GBConversationalService {
}

public async sendTextWithOptionsAndUser(min: GBMinInstance, user, step, text, translate, keepTextList) {
const member = step ? step.context.activity.from : null;

let replacements = [];

Expand Down Expand Up @@ -1253,10 +1252,12 @@ export class GBConversationalService {
}
analytics.createMessage(min.instance.instanceId, conversation, null, text);
}
if (!step && member && !isNaN(member.id) && !member.id.startsWith('1000')) {
const to = step.context.activity.group ? step.context.activity.group : member.id;
console.log(GBUtil.toYAML(step));
if (step && step.IsRevoked) {

await min.whatsAppDirectLine.sendToDevice(user.userSystemId,
text);

await min.whatsAppDirectLine.sendToDevice(to, text, step.context.activity.conversation.id);
} else {
await step.context.sendActivity(text);
}
Expand Down

0 comments on commit 16aae3f

Please sign in to comment.