Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

fix last_active_ago timestamps, tab completion ordering, and implement currently_active semantics #226

Merged
merged 9 commits into from
Mar 17, 2016
Prev Previous commit
Next Next commit
comment currentlyActive
  • Loading branch information
ara4n committed Mar 17, 2016
commit 6acfc8f5087240de8c98f7eb5b0a73984b391cad
1 change: 1 addition & 0 deletions src/components/views/rooms/EntityTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = React.createClass({
className: React.PropTypes.string,
presenceState: React.PropTypes.string,
presenceActiveAgo: React.PropTypes.number,
currentlyActive: React.PropTypes.bool,
showInviteButton: React.PropTypes.bool,
shouldComponentUpdate: React.PropTypes.func,
onClick: React.PropTypes.func,
Expand Down
8 changes: 8 additions & 0 deletions src/components/views/rooms/PresenceLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ module.exports = React.createClass({
displayName: 'PresenceLabel',

propTypes: {
// number of milliseconds ago this user was last active.
// zero = unknown
activeAgo: React.PropTypes.number,

// if true, activeAgo is an approximation and "Now" should
// be shown instead
currentlyActive: React.PropTypes.bool,

// offline, online, etc
presenceState: React.PropTypes.string
},

Expand Down