Add back comment

This commit is contained in:
theworldbright 2016-06-29 17:33:41 +09:00
parent 69cb0a8f1c
commit b3d871aa6a

View file

@ -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;