Skip to content

Commit

Permalink
Merge pull request #8001 from RocketChat/hotfix/autotranslate-parse-e…
Browse files Browse the repository at this point in the history
…rror

[FIX] Error when translating message
  • Loading branch information
engelgabriel authored Sep 2, 2017
2 parents 0e5a700 + 94699ee commit c4ac5ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-autotranslate/server/autotranslate.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class AutoTranslate {
let count = message.tokens.length;

message.html = message.msg;
message = RocketChat.Markdown.parse(message);
message = RocketChat.Markdown.parseNotEscaped(message);
message.msg = message.html;

for (const tokenIndex in message.tokens) {
Expand Down

0 comments on commit c4ac5ad

Please sign in to comment.