blob: 7987bf87c785260f2982e4aa86af6776cb2eac49 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {browserHistory} from 'react-router';
import TeamStore from 'stores/team_store.jsx';
export function goToChannel(channel) {
browserHistory.push(TeamStore.getCurrentTeamRelativeUrl() + '/channels/' + channel.name);
}
|