From fde5d56d87a9f4ce8a8e1b31419ecb9014cf37a4 Mon Sep 17 00:00:00 2001 From: Gabriel Carvalho de Campes Date: Tue, 31 Oct 2017 08:53:06 -0200 Subject: [PATCH] change ask permissions timing, small code fixes --- .../imports/ui/components/app/container.jsx | 1 - .../components/audio/audio-test/container.jsx | 18 +----------------- .../imports/ui/components/audio/container.jsx | 5 +---- .../imports/ui/services/audio-manager/index.js | 8 ++++++-- bigbluebutton-html5/private/locales/en.json | 4 +--- 5 files changed, 9 insertions(+), 27 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/app/container.jsx b/bigbluebutton-html5/imports/ui/components/app/container.jsx index e96bffca88..0d0d3430c7 100644 --- a/bigbluebutton-html5/imports/ui/components/app/container.jsx +++ b/bigbluebutton-html5/imports/ui/components/app/container.jsx @@ -34,7 +34,6 @@ const defaultProps = { navbar: , actionsbar: , media: , - children: null, }; const intlMessages = defineMessages({ diff --git a/bigbluebutton-html5/imports/ui/components/audio/audio-test/container.jsx b/bigbluebutton-html5/imports/ui/components/audio/audio-test/container.jsx index c4d235d01f..8e74d4fb66 100644 --- a/bigbluebutton-html5/imports/ui/components/audio/audio-test/container.jsx +++ b/bigbluebutton-html5/imports/ui/components/audio/audio-test/container.jsx @@ -1,22 +1,9 @@ import React from 'react'; import { createContainer } from 'meteor/react-meteor-data'; import Service from '/imports/ui/components/audio/service'; -import PropTypes from 'prop-types'; import AudioTest from './component'; -const propTypes = { - children: PropTypes.node, -}; - -const defaultProps = { - children: null, -}; - -const AudioTestContainer = props => ( - - {props.children} - -); +const AudioTestContainer = props => ; export default createContainer(() => ({ outputDeviceId: Service.outputDeviceId(), @@ -26,6 +13,3 @@ export default createContainer(() => ({ sound.play(); }, }), AudioTestContainer); - -AudioTestContainer.propTypes = propTypes; -AudioTestContainer.defaultProps = defaultProps; diff --git a/bigbluebutton-html5/imports/ui/components/audio/container.jsx b/bigbluebutton-html5/imports/ui/components/audio/container.jsx index 251246fd9a..fbf0ea116c 100644 --- a/bigbluebutton-html5/imports/ui/components/audio/container.jsx +++ b/bigbluebutton-html5/imports/ui/components/audio/container.jsx @@ -51,10 +51,7 @@ const intlMessages = defineMessages({ }); -const AudioContainer = props => - (); +const AudioContainer = props =>