mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-05 02:50:43 +02:00
Fix bug where an empty chat message would appear in the chat modal
This commit is contained in:
@@ -460,7 +460,9 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra
|
||||
var chatContent = chatModal.find('.chat-content'),
|
||||
lastSpeaker = parseInt(chatContent.find('.chat-message').last().attr('data-uid'), 10);
|
||||
|
||||
data.newSet = lastSpeaker !== data.fromuid;
|
||||
if (!Array.isArray(data)) {
|
||||
data.newSet = lastSpeaker !== data.fromuid;
|
||||
}
|
||||
|
||||
Chats.parseMessage(data, function(html) {
|
||||
var message = $(html);
|
||||
|
||||
Reference in New Issue
Block a user