diff --git a/src/components/views/rooms/UserTile.js b/src/components/views/rooms/UserTile.js index fe7e95a02a..9608247d5e 100644 --- a/src/components/views/rooms/UserTile.js +++ b/src/components/views/rooms/UserTile.js @@ -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 = (