You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Simplify logic for timestamp ordering of memberlist
This commit is contained in:
@@ -425,9 +425,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
// For now, let's just order things by timestamp. It's really annoying
|
// 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
|
// that a user disappears from sight just because they temporarily go offline
|
||||||
var lastActiveTsA = userA && userA.lastActiveAgo ? userA.lastActiveAgo : 9999999999;
|
return userB.getLastActiveTs() - userA.getLastActiveTs();
|
||||||
var lastActiveTsB = userB && userB.lastActiveAgo ? userB.lastActiveAgo : 9999999999;
|
|
||||||
return lastActiveTsA - lastActiveTsB;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onSearchQueryChanged: function(input) {
|
onSearchQueryChanged: function(input) {
|
||||||
|
|||||||
Reference in New Issue
Block a user