diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-11-03 15:17:32 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-11-03 15:17:32 +0000 |
commit | f3dbcdc7b31f693096407f9bfad0f7c2aa9b66c5 (patch) | |
tree | 7c90ec3fd66fb9370288174b6132b39bb923c9c0 /webclient/recents | |
parent | Fix broken redact enable logic. (diff) | |
download | synapse-f3dbcdc7b31f693096407f9bfad0f7c2aa9b66c5.tar.xz |
Variable renaming, general cleanup. Don't feed state events from /initialSync twice.
Diffstat (limited to 'webclient/recents')
-rw-r--r-- | webclient/recents/recents-filter.js | 6 |
1 files changed, 1 insertions, 5 deletions
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); |