comment currentlyActive

pull/21833/head
Matthew Hodgson 2016-03-17 00:06:53 +00:00
parent 50e33d30b6
commit 6acfc8f508
2 changed files with 9 additions and 0 deletions

View File

@ -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,

View File

@ -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
},