mirror of https://github.com/vector-im/riot-web
Add back comment
parent
69cb0a8f1c
commit
b3d871aa6a
|
@ -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 New Issue