// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import {ViewTypes} from 'app/constants'; export function handleServerUrlChanged(serverUrl) { return async (dispatch, getState) => { dispatch({ type: ViewTypes.SERVER_URL_CHANGED, serverUrl }, getState); }; } export default { handleServerUrlChanged };