From 827c0da33cc1db2412e1357ad51a7305913b3e9b Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 8 Nov 2015 13:42:45 +0000 Subject: [PATCH] commented out debug --- src/controllers/organisms/RoomList.js | 2 ++ src/skins/vector/views/organisms/RoomSubList.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controllers/organisms/RoomList.js b/src/controllers/organisms/RoomList.js index 35d1774a..295f5f58 100644 --- a/src/controllers/organisms/RoomList.js +++ b/src/controllers/organisms/RoomList.js @@ -183,6 +183,8 @@ module.exports = { } }); + //console.log("calculated new roomLists; m.recent = " + s.lists["m.recent"]); + // we actually apply the sorting to this when receiving the prop in RoomSubLists. return s; diff --git a/src/skins/vector/views/organisms/RoomSubList.js b/src/skins/vector/views/organisms/RoomSubList.js index 02078f1a..501a9f58 100644 --- a/src/skins/vector/views/organisms/RoomSubList.js +++ b/src/skins/vector/views/organisms/RoomSubList.js @@ -78,6 +78,7 @@ var RoomSubList = React.createClass({ componentWillReceiveProps: function(newProps) { // order the room list appropriately before we re-render + //if (debug) console.log("received new props, list = " + newProps.list); this.sortList(newProps.list, newProps.order); }, @@ -116,7 +117,7 @@ var RoomSubList = React.createClass({ if (order === "manual") comparator = this.manualComparator; if (order === "recent") comparator = this.recentsComparator; - // console.log("sorting list for room " + this.props.label + " with length " + list.length + ", this.props.list = " + this.props.list); + //if (debug) console.log("sorting list for sublist " + this.props.label + " with length " + list.length + ", this.props.list = " + this.props.list); this.setState({ sortedList: list.sort(comparator) }); },