deobfuscate last_active_ago ordering
This commit is contained in:
parent
2265d1a82a
commit
ce833c9bba
1 changed files with 4 additions and 4 deletions
|
@ -317,10 +317,10 @@ module.exports = React.createClass({
|
|||
return presenceOrdB - presenceOrdA;
|
||||
}
|
||||
|
||||
var latA = userA ? (userA.lastPresenceTs - (userA.lastActiveAgo || userA.lastPresenceTs)) : 0;
|
||||
var latB = userB ? (userB.lastPresenceTs - (userB.lastActiveAgo || userB.lastPresenceTs)) : 0;
|
||||
|
||||
return latB - latA;
|
||||
var lastActiveTsA = userA && userA.lastActiveAgo ? userA.lastPresenceTs - userA.lastActiveAgo : 0;
|
||||
var lastActiveTsB = userB && userB.lastActiveAgo ? userB.lastPresenceTs - userB.lastActiveAgo : 0;
|
||||
|
||||
return lastActiveTsB - lastActiveTsA;
|
||||
},
|
||||
|
||||
onSearchQueryChanged: function(input) {
|
||||
|
|
Loading…
Reference in a new issue