fix copy-paste bug caught by PR review

This commit is contained in:
Matthew Hodgson 2016-03-17 11:37:26 +00:00
parent 11a146ed42
commit 84278a4ed4

View file

@ -38,8 +38,8 @@ module.exports = React.createClass({
var active = -1;
// FIXME: make presence data update whenever User.presence changes...
active = member.user.lastActiveAgo ?
(Date.now() - (member.user.lastPresenceTs - member.user.lastActiveAgo)) : -1;
active = user.lastActiveAgo ?
(Date.now() - (user.lastPresenceTs - user.lastActiveAgo)) : -1;
var BaseAvatar = sdk.getComponent('avatars.BaseAvatar');
var avatarJsx = (