mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
Merge pull request #4286 from pichalite/chat-dropdown
don't show rooms without messages
This commit is contained in:
@@ -92,7 +92,9 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
|
||||
var rooms = data.rooms;
|
||||
var rooms = data.rooms.filter(function(room) {
|
||||
return room.teaser;
|
||||
});
|
||||
|
||||
chatsListEl.empty();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user