fix: add loadingMore flag to chat infinite load

This commit is contained in:
Barış Soner Uşaklı
2023-05-21 18:58:45 -04:00
parent 12e75ff418
commit e0300ab7b4

View File

@@ -72,7 +72,7 @@ define('forum/chats/recent', ['alerts', 'api'], function (alerts, api) {
if (!data.rooms.length) {
return callback();
}
data.loadingMore = true;
app.parseAndTranslate('chats', 'rooms', data, function (html) {
$('[component="chat/recent"]').append(html);
html.find('.timeago').timeago();