mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
fixes #4159
This commit is contained in:
@@ -394,10 +394,8 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
|
|||||||
data.messages.forEach(function(message) {
|
data.messages.forEach(function(message) {
|
||||||
var self = parseInt(message.fromuid, 10) === parseInt(app.user.uid);
|
var self = parseInt(message.fromuid, 10) === parseInt(app.user.uid);
|
||||||
message.self = self ? 1 : 0;
|
message.self = self ? 1 : 0;
|
||||||
templates.parse('partials/chat_message', {
|
Chats.parseMessage(message, function(html) {
|
||||||
messages: message
|
var body = components.get('chat/message', message.messageId);
|
||||||
}, function(html) {
|
|
||||||
var body = components.get('chat/message', message.messageId);
|
|
||||||
if (body.length) {
|
if (body.length) {
|
||||||
body.replaceWith(html);
|
body.replaceWith(html);
|
||||||
components.get('chat/message', message.messageId).find('.timeago').timeago();
|
components.get('chat/message', message.messageId).find('.timeago').timeago();
|
||||||
|
|||||||
Reference in New Issue
Block a user