mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
commented out debug
This commit is contained in:
parent
f0dbb422f6
commit
827c0da33c
@ -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.
|
// we actually apply the sorting to this when receiving the prop in RoomSubLists.
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
|
@ -78,6 +78,7 @@ var RoomSubList = React.createClass({
|
|||||||
|
|
||||||
componentWillReceiveProps: function(newProps) {
|
componentWillReceiveProps: function(newProps) {
|
||||||
// order the room list appropriately before we re-render
|
// 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);
|
this.sortList(newProps.list, newProps.order);
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -116,7 +117,7 @@ var RoomSubList = React.createClass({
|
|||||||
if (order === "manual") comparator = this.manualComparator;
|
if (order === "manual") comparator = this.manualComparator;
|
||||||
if (order === "recent") comparator = this.recentsComparator;
|
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) });
|
this.setState({ sortedList: list.sort(comparator) });
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user