From ca3fa023e8aca97eff3c12e9e2916415f86dd3a5 Mon Sep 17 00:00:00 2001 From: pichalite Date: Mon, 22 Feb 2016 06:49:35 +0000 Subject: [PATCH] fixes #4159 --- public/src/client/chats.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/src/client/chats.js b/public/src/client/chats.js index 1508af97d3..f56dcf6d33 100644 --- a/public/src/client/chats.js +++ b/public/src/client/chats.js @@ -394,10 +394,8 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll', data.messages.forEach(function(message) { var self = parseInt(message.fromuid, 10) === parseInt(app.user.uid); message.self = self ? 1 : 0; - templates.parse('partials/chat_message', { - messages: message - }, function(html) { - var body = components.get('chat/message', message.messageId); + Chats.parseMessage(message, function(html) { + var body = components.get('chat/message', message.messageId); if (body.length) { body.replaceWith(html); components.get('chat/message', message.messageId).find('.timeago').timeago();