Add back comment
This commit is contained in:
parent
69cb0a8f1c
commit
b3d871aa6a
1 changed files with 2 additions and 0 deletions
|
@ -423,6 +423,8 @@ module.exports = React.createClass({
|
||||||
if (userA.currentlyActive && !userB.currentlyActive) return -1;
|
if (userA.currentlyActive && !userB.currentlyActive) return -1;
|
||||||
if (!userA.currentlyActive && userB.currentlyActive) return 1;
|
if (!userA.currentlyActive && userB.currentlyActive) return 1;
|
||||||
|
|
||||||
|
// For now, let's just order things by timestamp. It's really annoying
|
||||||
|
// that a user disappears from sight just because they temporarily go offline
|
||||||
var lastActiveTsA = userA && userA.lastActiveAgo ? userA.lastActiveAgo : 9999999999;
|
var lastActiveTsA = userA && userA.lastActiveAgo ? userA.lastActiveAgo : 9999999999;
|
||||||
var lastActiveTsB = userB && userB.lastActiveAgo ? userB.lastActiveAgo : 9999999999;
|
var lastActiveTsB = userB && userB.lastActiveAgo ? userB.lastActiveAgo : 9999999999;
|
||||||
return lastActiveTsA - lastActiveTsB;
|
return lastActiveTsA - lastActiveTsB;
|
||||||
|
|
Loading…
Reference in a new issue