18 lines
537 B
JavaScript
18 lines
537 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {NavigationTypes} from 'app/constants';
|
|
import {UserTypes} from 'mattermost-redux/action_types';
|
|
import EventEmitter from 'mattermost-redux/utils/event_emitter';
|
|
|
|
export default function(state = '', action) {
|
|
switch (action.type) {
|
|
case UserTypes.LOGOUT_SUCCESS:
|
|
setTimeout(() => {
|
|
EventEmitter.emit(NavigationTypes.NAVIGATION_RESET);
|
|
});
|
|
break;
|
|
}
|
|
|
|
return state;
|
|
}
|