Finally fixed the git weirdness

Этот коммит содержится в:
nickago
2015-07-01 12:41:36 -07:00
родитель 5e204030ff
Коммит fd310e382a
4 изменённых файлов: 27 добавлений и 14 удалений

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

@@ -43,6 +43,7 @@ SearchItem = React.createClass({
e.preventDefault();
var self = this;
client.getPost(
this.props.post.channel_id,
this.props.post.id,
@@ -64,6 +65,11 @@ SearchItem = React.createClass({
dispatchError(err, "getPost");
}
);
var postChannel = ChannelStore.get(this.props.post.channel_id);
var teammate = postChannel.type === 'D' ? utils.getDirectTeammate(this.props.post.channel_id).username : "";
utils.switchChannel(postChannel,teammate);
},
render: function() {