mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
don't show rooms without messages
This commit is contained in:
@@ -83,7 +83,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