Fixes not selecting an element that hasn't been scrolled to

Этот коммит содержится в:
Reed Garmsen
2015-07-14 18:36:54 -07:00
родитель 61e7b9b2be
Коммит 9747053a4e
2 изменённых файлов: 27 добавлений и 47 удалений

Просмотреть файл

@@ -24,7 +24,9 @@ module.exports = React.createClass({
var self = this;
var icon;
var timestamp = UserStore.getCurrentUser().update_at;
if (this.props.id != null) {
if (this.props.id === "allmention" || this.props.id === "channelmention") {
icon = <span><i className="mention-img fa fa-users fa-2x"></i></span>;
} else if (this.props.id != null) {
icon = <span><img className="mention-img" src={"/api/v1/users/" + this.props.id + "/image?time=" + timestamp}/></span>;
} else {
icon = <span><i className="mention-img fa fa-users fa-2x"></i></span>;