jiti-meet/react/features/chat/actions.web.js

21 lines
450 B
JavaScript

// @flow
import VideoLayout from '../../../modules/UI/videolayout/VideoLayout';
import { TOGGLE_CHAT } from './actionTypes';
export * from './actions.any';
/**
* Toggles display of the chat side panel while also taking window
* resize into account.
*
* @returns {Function}
*/
export function toggleChat() {
return function(dispatch: (Object) => Object) {
dispatch({ type: TOGGLE_CHAT });
VideoLayout.onResize();
};
}