You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.web.js 450B

1234567891011121314151617181920
  1. // @flow
  2. import VideoLayout from '../../../modules/UI/videolayout/VideoLayout';
  3. import { TOGGLE_CHAT } from './actionTypes';
  4. export * from './actions.any';
  5. /**
  6. * Toggles display of the chat side panel while also taking window
  7. * resize into account.
  8. *
  9. * @returns {Function}
  10. */
  11. export function toggleChat() {
  12. return function(dispatch: (Object) => Object) {
  13. dispatch({ type: TOGGLE_CHAT });
  14. VideoLayout.onResize();
  15. };
  16. }