From cd99a469185c9f9f77c9c98cbd74b9920a68a38e Mon Sep 17 00:00:00 2001 From: pichalite Date: Mon, 29 Feb 2016 06:19:43 +0000 Subject: [PATCH] don't show rooms without messages --- public/src/modules/chat.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/modules/chat.js b/public/src/modules/chat.js index 7721b6e70a..15cda10308 100644 --- a/public/src/modules/chat.js +++ b/public/src/modules/chat.js @@ -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();