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
comment currentlyActive
This commit is contained in:
@@ -38,6 +38,7 @@ module.exports = React.createClass({
|
|||||||
className: React.PropTypes.string,
|
className: React.PropTypes.string,
|
||||||
presenceState: React.PropTypes.string,
|
presenceState: React.PropTypes.string,
|
||||||
presenceActiveAgo: React.PropTypes.number,
|
presenceActiveAgo: React.PropTypes.number,
|
||||||
|
currentlyActive: React.PropTypes.bool,
|
||||||
showInviteButton: React.PropTypes.bool,
|
showInviteButton: React.PropTypes.bool,
|
||||||
shouldComponentUpdate: React.PropTypes.func,
|
shouldComponentUpdate: React.PropTypes.func,
|
||||||
onClick: React.PropTypes.func,
|
onClick: React.PropTypes.func,
|
||||||
|
|||||||
@@ -25,7 +25,15 @@ module.exports = React.createClass({
|
|||||||
displayName: 'PresenceLabel',
|
displayName: 'PresenceLabel',
|
||||||
|
|
||||||
propTypes: {
|
propTypes: {
|
||||||
|
// number of milliseconds ago this user was last active.
|
||||||
|
// zero = unknown
|
||||||
activeAgo: React.PropTypes.number,
|
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
|
presenceState: React.PropTypes.string
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user