Skip to content

Commit

Permalink
fix(all): Corrected mobile number to WhatsApp while output md.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Oct 12, 2021
1 parent fb53be5 commit 95524a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core.gbapp/services/GBConversationalService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ export class GBConversationalService {
);
GBLog.info(`Translated text(playMarkdown): ${text}.`);


var renderer = new marked.Renderer();
renderer.oldImage = renderer.image;
renderer.image = function (href, title, text) {
Expand Down Expand Up @@ -429,7 +428,7 @@ export class GBConversationalService {
const mobile = this.userMobile(step);

if (mobile) {
await this.sendMarkdownToMobile(min, step, user.systemUser.userSystemId, text);
await this.sendMarkdownToMobile(min, step, mobile, text);
} else if (GBConfigService.get('DISABLE_WEB') !== 'true') {
const html = marked(text);
await this.sendMarkdownToWeb(min, step, html, answer);
Expand Down

0 comments on commit 95524a9

Please sign in to comment.