mirror of https://github.com/vector-im/riot-web
Switch ordering of Idle users
parent
72a1d5a0de
commit
69cb0a8f1c
|
@ -423,9 +423,9 @@ module.exports = React.createClass({
|
|||
if (userA.currentlyActive && !userB.currentlyActive) return -1;
|
||||
if (!userA.currentlyActive && userB.currentlyActive) return 1;
|
||||
|
||||
var lastActiveTsA = userA && userA.lastActiveAgo ? userA.lastActiveAgo : 0;
|
||||
var lastActiveTsB = userB && userB.lastActiveAgo ? userB.lastActiveAgo : 0;
|
||||
return lastActiveTsB - lastActiveTsA;
|
||||
var lastActiveTsA = userA && userA.lastActiveAgo ? userA.lastActiveAgo : 9999999999;
|
||||
var lastActiveTsB = userB && userB.lastActiveAgo ? userB.lastActiveAgo : 9999999999;
|
||||
return lastActiveTsA - lastActiveTsB;
|
||||
},
|
||||
|
||||
onSearchQueryChanged: function(input) {
|
||||
|
|
Loading…
Reference in New Issue