Removed unused title update code

Этот коммит содержится в:
Reed Garmsen
2015-09-28 16:31:18 -07:00
родитель 5b67abf34b
Коммит 558f8a322f
4 изменённых файлов: 3 добавлений и 19 удалений

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

@@ -43,7 +43,7 @@ export default class MoreDirectChannels extends React.Component {
handleClick = function clickHandler(e) {
e.preventDefault();
utils.switchChannel(channel, channel.teammate_username);
utils.switchChannel(channel);
$(React.findDOMNode(self.refs.modal)).modal('hide');
};
} else {

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

@@ -78,7 +78,6 @@ export default class RenameChannelModal extends React.Component {
$(React.findDOMNode(this.refs.modal)).modal('hide');
AsyncClient.getChannel(channel.id);
Utils.updateTabTitle(channel.display_name);
Utils.updateAddressBar(channel.name);
React.findDOMNode(this.refs.displayName).value = '';

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

@@ -47,13 +47,8 @@ export default class SearchResultsItem extends React.Component {
);
var postChannel = ChannelStore.get(this.props.post.channel_id);
var teammate = '';
if (postChannel.type === 'D') {
teammate = utils.getDirectTeammate(this.props.post.channel_id).username;
}
utils.switchChannel(postChannel, teammate);
utils.switchChannel(postChannel);
}
render() {