From 424c4552726cc2fb4e57f217ed49547d045f1eb7 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Mon, 5 Oct 2015 16:28:46 -0400 Subject: [PATCH] Assume all servers support rooms The rooms feature was pushed out over two years ago, so we're dropping support for non-rooms-supporting servers. Even for one-room servers, the rooms tab includes a user count and a battle count. This smoothes out preloading on the main server. --- js/client.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/js/client.js b/js/client.js index 96df35a97..3e4a00ad7 100644 --- a/js/client.js +++ b/js/client.js @@ -1272,7 +1272,6 @@ }); }, roomsResponse: function (data) { - app.supports['rooms'] = true; if (data) { this.roomsData = data; } @@ -1820,9 +1819,7 @@ if (window.nodewebkit) { if (nwWindow.setBadgeLabel) nwWindow.setBadgeLabel(notificationCount || ''); } - if (app.supports['rooms']) { - sideBuf += '
  •  
  • '; - } + sideBuf += '
  •  
  • '; var margin = 0; if (sideBuf) { if (app.curSideRoom) { @@ -2937,9 +2934,7 @@ var buf = ''; if (app.roomList.length) buf += this.renderRooms(app.roomList); var sideBuf = this.renderRooms(app.sideRoomList); - if (app.supports['rooms']) { - sideBuf += '
  •  
  • '; - } + sideBuf += '
  •  
  • '; if (sideBuf) { buf += ''; }