reskindex and use sdk.getComponent for EmojiText
This commit is contained in:
parent
1b414cad18
commit
4c1dcb924b
10 changed files with 13 additions and 9 deletions
|
@ -20,7 +20,6 @@ var React = require('react');
|
|||
|
||||
var MatrixClientPeg = require('../../../MatrixClientPeg');
|
||||
var sdk = require('../../../index');
|
||||
import EmojiText from '../elements/EmojiText';
|
||||
|
||||
|
||||
var PRESENCE_CLASS = {
|
||||
|
@ -105,6 +104,7 @@ module.exports = React.createClass({
|
|||
var nameEl;
|
||||
const {name} = this.props;
|
||||
|
||||
const EmojiText = sdk.getComponent('elements.EmojiText');
|
||||
if (this.state.hover && !this.props.suppressOnHover) {
|
||||
var activeAgo = this.props.presenceLastActiveAgo ?
|
||||
(Date.now() - (this.props.presenceLastTs - this.props.presenceLastActiveAgo)) : -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue