add loading=false

v1.18.x
Barış Soner Uşaklı 6 years ago
parent ef55598822
commit 95ace13599

@ -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) {

Loading…
Cancel
Save