implement currently_active

This commit is contained in:
Matthew Hodgson 2016-03-16 22:44:54 +00:00
parent 58d46825ce
commit 500b88dc36
4 changed files with 5 additions and 1 deletions

View file

@ -67,9 +67,10 @@ module.exports = React.createClass({
render: function() {
if (this.props.activeAgo >= 0) {
var ago = this.props.currentlyActive ? "now" : (this.getDuration(this.props.activeAgo) + " ago");
return (
<div className="mx_PresenceLabel">
{ this.getPrettyPresence(this.props.presenceState) } { this.getDuration(this.props.activeAgo) } ago
{ this.getPrettyPresence(this.props.presenceState) } { ago }
</div>
);
}