Skip to content

Commit

Permalink
Rollback changes to renderMessageBody which were causing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
gdelavald committed Jul 3, 2017
1 parent bfcaf60 commit 8924b67
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/rocketchat-ui-message/client/renderMessageBody.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/* global renderMessageBody:true */

renderMessageBody = function(msg) {
if (_.trim(msg.msg) !== '') {
msg.html = _.escapeHTML(msg.msg);
msg.html = msg.msg;

if (_.trim(msg.html) !== '') {
msg.html = _.escapeHTML(msg.html);
}

const message = RocketChat.callbacks.run('renderMessage', msg);
Expand Down

0 comments on commit 8924b67

Please sign in to comment.