| 12345678910111213141516171819202122232425 | 
							- // @flow
 - 
 - import { type Dispatch } from 'redux';
 - 
 - import {
 -     getCurrentConference
 - } from '../base/conference';
 - 
 - /**
 -  * Action to toggle lobby mode on or off.
 -  *
 -  * @param {boolean} enabled - The desired (new) state of the lobby mode.
 -  * @returns {Function}
 -  */
 - export function toggleLobbyMode(enabled: boolean) {
 -     return async (dispatch: Dispatch<any>, getState: Function) => {
 -         const conference = getCurrentConference(getState);
 - 
 -         if (enabled) {
 -             conference.enableLobby();
 -         } else {
 -             conference.disableLobby();
 -         }
 -     };
 - }
 
 
  |