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 31215d8 commit 7ed8979
Show file tree
Hide file tree
Showing 2 changed files with 8 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 @@ -1430,7 +1430,7 @@ export class DialogKeywords {
GBLog.verbose(`Translated text(playMarkdown): ${text}.`);

if (step) {
await min.conversationalService.sendText(min, step, text);
await min.conversationalService.sendText(min, step, text, user);
} else {
await min.conversationalService['sendOnConversation'](min, user, text);
}
Expand Down
11 changes: 7 additions & 4 deletions packages/core.gbapp/services/GBConversationalService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1196,13 +1196,16 @@ export class GBConversationalService {
}
}

public async sendText(min: GBMinInstance, step, text) {
await this['sendTextWithOptions'](min, step, text, true, null);
public async sendText(min: GBMinInstance, step, text, user = null) {
await this['sendTextWithOptions'](min, step, text, true, null, user);
}

public async sendTextWithOptions(min: GBMinInstance, step, text, translate, keepTextList) {
public async sendTextWithOptions(min: GBMinInstance, step, text, translate, keepTextList, user) {
let sec = new SecService();
let user = await sec.getUserFromSystemId(step.context.activity.from.id);

if (!user){
user = await sec.getUserFromSystemId(step.context.activity.from.id);
}
await this['sendTextWithOptionsAndUser'](min, user, step, text, true, null);
}

Expand Down

0 comments on commit 7ed8979

Please sign in to comment.