mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
add loading=false
This commit is contained in:
@@ -119,12 +119,14 @@ define('forum/chats', [
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
if (!data) {
|
||||
loading = false;
|
||||
return;
|
||||
}
|
||||
data = data.filter(function (chatMsg) {
|
||||
return !$('[component="chat/message"][data-mid="' + chatMsg.messageId + '"]').length;
|
||||
});
|
||||
if (!data.length) {
|
||||
loading = false;
|
||||
return;
|
||||
}
|
||||
messages.parseMessage(data, function (html) {
|
||||
|
||||
Reference in New Issue
Block a user