diff --git a/public/src/client/chats.js b/public/src/client/chats.js index dac32dd4d5..861306f8f4 100644 --- a/public/src/client/chats.js +++ b/public/src/client/chats.js @@ -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) {