|
1 | 1 | // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
2 | 2 | // See License.txt for license information.
|
3 | 3 |
|
4 |
| -import AppDispatcher from 'dispatcher/app_dispatcher.jsx'; |
| 4 | +import {browserHistory} from 'react-router/es6'; |
5 | 5 |
|
6 |
| -import ChannelStore from 'stores/channel_store.jsx'; |
7 |
| -import UserStore from 'stores/user_store.jsx'; |
8 |
| -import BrowserStore from 'stores/browser_store.jsx'; |
9 |
| -import ErrorStore from 'stores/error_store.jsx'; |
10 |
| -import TeamStore from 'stores/team_store.jsx'; |
11 |
| -import SearchStore from 'stores/search_store.jsx'; |
| 6 | +import {createDirectChannel, getChannelAndMyMember, getChannelStats, getMyChannelMember, joinChannel, viewChannel} from 'mattermost-redux/actions/channels'; |
| 7 | +import {getPostThread} from 'mattermost-redux/actions/posts'; |
| 8 | +import {removeUserFromTeam} from 'mattermost-redux/actions/teams'; |
| 9 | +import {Client4} from 'mattermost-redux/client'; |
12 | 10 |
|
13 |
| -import {handleNewPost} from 'actions/post_actions.jsx'; |
14 |
| -import {loadProfilesForSidebar, loadNewDMIfNeeded, loadNewGMIfNeeded} from 'actions/user_actions.jsx'; |
15 | 11 | import {loadChannelsForCurrentUser} from 'actions/channel_actions.jsx';
|
| 12 | +import {trackEvent} from 'actions/diagnostics_actions.jsx'; |
| 13 | +import {handleNewPost} from 'actions/post_actions.jsx'; |
16 | 14 | import {stopPeriodicStatusUpdates} from 'actions/status_actions.jsx';
|
| 15 | +import {loadNewDMIfNeeded, loadNewGMIfNeeded, loadProfilesForSidebar} from 'actions/user_actions.jsx'; |
17 | 16 | import * as WebsocketActions from 'actions/websocket_actions.jsx';
|
18 |
| -import {trackEvent} from 'actions/diagnostics_actions.jsx'; |
| 17 | +import AppDispatcher from 'dispatcher/app_dispatcher.jsx'; |
| 18 | +import BrowserStore from 'stores/browser_store.jsx'; |
| 19 | +import ChannelStore from 'stores/channel_store.jsx'; |
| 20 | +import ErrorStore from 'stores/error_store.jsx'; |
| 21 | +import store from 'stores/redux_store.jsx'; |
| 22 | +import SearchStore from 'stores/search_store.jsx'; |
| 23 | +import TeamStore from 'stores/team_store.jsx'; |
| 24 | +import UserStore from 'stores/user_store.jsx'; |
| 25 | + |
| 26 | +import WebSocketClient from 'client/web_websocket_client.jsx'; |
19 | 27 |
|
20 | 28 | import {ActionTypes, Constants, ErrorPageTypes} from 'utils/constants.jsx';
|
21 | 29 | import EventTypes from 'utils/event_types.jsx';
|
22 |
| - |
23 |
| -import WebSocketClient from 'client/web_websocket_client.jsx'; |
24 | 30 | import {sortTeamsByDisplayName} from 'utils/team_utils.jsx';
|
25 | 31 | import * as Utils from 'utils/utils.jsx';
|
26 | 32 |
|
27 | 33 | import en from 'i18n/en.json';
|
28 | 34 | import * as I18n from 'i18n/i18n.jsx';
|
29 |
| -import {browserHistory} from 'react-router/es6'; |
30 | 35 |
|
31 |
| -// Redux actions |
32 |
| -import store from 'stores/redux_store.jsx'; |
33 | 36 | const dispatch = store.dispatch;
|
34 | 37 | const getState = store.getState;
|
35 | 38 |
|
36 |
| -import {Client4} from 'mattermost-redux/client'; |
37 |
| - |
38 |
| -import {removeUserFromTeam} from 'mattermost-redux/actions/teams'; |
39 |
| -import {viewChannel, getChannelStats, getMyChannelMember, getChannelAndMyMember, createDirectChannel, joinChannel} from 'mattermost-redux/actions/channels'; |
40 |
| -import {getPostThread} from 'mattermost-redux/actions/posts'; |
41 |
| - |
42 | 39 | export function emitChannelClickEvent(channel) {
|
43 | 40 | function userVisitedFakeChannel(chan, success, fail) {
|
44 | 41 | const currentUserId = UserStore.getCurrentId();
|
|
0 commit comments