Skip to content

Commit 827c0da

Browse files
committed
commented out debug
1 parent f0dbb42 commit 827c0da

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/controllers/organisms/RoomList.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ module.exports = {
183183
}
184184
});
185185

186+
//console.log("calculated new roomLists; m.recent = " + s.lists["m.recent"]);
187+
186188
// we actually apply the sorting to this when receiving the prop in RoomSubLists.
187189

188190
return s;

‎src/skins/vector/views/organisms/RoomSubList.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ var RoomSubList = React.createClass({
7878

7979
componentWillReceiveProps: function(newProps) {
8080
// order the room list appropriately before we re-render
81+
//if (debug) console.log("received new props, list = " + newProps.list);
8182
this.sortList(newProps.list, newProps.order);
8283
},
8384

@@ -116,7 +117,7 @@ var RoomSubList = React.createClass({
116117
if (order === "manual") comparator = this.manualComparator;
117118
if (order === "recent") comparator = this.recentsComparator;
118119

119-
// console.log("sorting list for room " + this.props.label + " with length " + list.length + ", this.props.list = " + this.props.list);
120+
//if (debug) console.log("sorting list for sublist " + this.props.label + " with length " + list.length + ", this.props.list = " + this.props.list);
120121
this.setState({ sortedList: list.sort(comparator) });
121122
},
122123

0 commit comments

Comments
 (0)