From f3dbcdc7b31f693096407f9bfad0f7c2aa9b66c5 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 3 Nov 2014 15:17:32 +0000 Subject: Variable renaming, general cleanup. Don't feed state events from /initialSync twice. --- webclient/recents/recents-filter.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'webclient/recents') diff --git a/webclient/recents/recents-filter.js b/webclient/recents/recents-filter.js index db7fc5e4ee..39c2359967 100644 --- a/webclient/recents/recents-filter.js +++ b/webclient/recents/recents-filter.js @@ -45,14 +45,10 @@ angular.module('RecentsController') // The only information we have about the room is that the user has been invited filtered.push(room); } - else { - console.error("Dropping "+room.room_id); - } - }); // And time sort them - // The room with the lastest message at first + // The room with the latest message at first filtered.sort(function (roomA, roomB) { var lastMsgRoomA = eventHandlerService.getLastMessage(roomA.room_id, true); -- cgit 1.5.1