dont render who is typing tile when no room available (like in notif panel)
parent
8f4292399b
commit
0212df922a
|
@ -664,6 +664,11 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
let whoIsTyping;
|
||||||
|
if (this.props.room) {
|
||||||
|
whoIsTyping = (<WhoIsTypingTile room={this.props.room} onVisible={this._scrollDownIfAtBottom} />);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollPanel ref="scrollPanel" className={className}
|
<ScrollPanel ref="scrollPanel" className={className}
|
||||||
onScroll={this.props.onScroll}
|
onScroll={this.props.onScroll}
|
||||||
|
@ -674,7 +679,7 @@ module.exports = React.createClass({
|
||||||
stickyBottom={this.props.stickyBottom}>
|
stickyBottom={this.props.stickyBottom}>
|
||||||
{ topSpinner }
|
{ topSpinner }
|
||||||
{ this._getEventTiles() }
|
{ this._getEventTiles() }
|
||||||
<WhoIsTypingTile room={this.props.room} onVisible={this._scrollDownIfAtBottom} />
|
{ whoIsTyping }
|
||||||
{ bottomSpinner }
|
{ bottomSpinner }
|
||||||
</ScrollPanel>
|
</ScrollPanel>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue