From 0d1b085d54565ffc8140477217bc57fd6c2fbbce Mon Sep 17 00:00:00 2001 From: Anton Georgiev Date: Mon, 15 Oct 2018 20:03:17 +0000 Subject: [PATCH] improved on logic for open private chat --- .../imports/ui/components/app/component.jsx | 11 ++++----- .../imports/ui/components/app/container.jsx | 2 +- .../imports/ui/components/chat/component.jsx | 1 - .../imports/ui/components/chat/container.jsx | 12 +++++----- .../chat/message-form/component.jsx | 1 - .../imports/ui/components/chat/service.js | 23 +++++++++++-------- .../ui/components/dropdown/list/component.jsx | 7 +++--- .../ui/components/nav-bar/component.jsx | 11 +++++---- .../user-dropdown/component.jsx | 4 ++-- 9 files changed, 36 insertions(+), 36 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/app/component.jsx b/bigbluebutton-html5/imports/ui/components/app/component.jsx index 6aeae3e130..794dfd7416 100755 --- a/bigbluebutton-html5/imports/ui/components/app/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/app/component.jsx @@ -45,7 +45,7 @@ const propTypes = { actionsbar: PropTypes.element, closedCaption: PropTypes.element, userListIsOpen: PropTypes.bool.isRequired, - chat: PropTypes.element, + chatIsOpen: PropTypes.bool.isRequired, locale: PropTypes.string, intl: intlShape.isRequired, }; @@ -57,7 +57,6 @@ const defaultProps = { media: null, actionsbar: null, closedCaption: null, - chat: null, locale: 'en', }; @@ -65,8 +64,6 @@ class App extends Component { constructor() { super(); - console.log('1'); - this.state = { compactUserList: false, enableResize: !window.matchMedia(MOBILE_MEDIA).matches, @@ -162,7 +159,7 @@ class App extends Component {
@@ -301,7 +298,7 @@ class App extends Component { } render() { - const { params, userListIsOpen } = this.props; + const { userListIsOpen } = this.props; const { enableResize } = this.state; return ( @@ -321,7 +318,7 @@ class App extends Component { - {/* TODO 4767 */} + ); } diff --git a/bigbluebutton-html5/imports/ui/components/app/container.jsx b/bigbluebutton-html5/imports/ui/components/app/container.jsx index 15fc08ff89..a6285d548d 100755 --- a/bigbluebutton-html5/imports/ui/components/app/container.jsx +++ b/bigbluebutton-html5/imports/ui/components/app/container.jsx @@ -106,7 +106,7 @@ export default injectIntl(withModalMounter(withTracker(({ intl, baseControls }) closedCaption: getCaptionsStatus() ? : null, fontSize: getFontSize(), userListIsOpen: Boolean(Session.get('isUserListOpen')), - chatIsOpen: Boolean(Session.get('isChatOpen')), + chatIsOpen: Boolean(Session.get('isChatOpen') && Session.get('isUserListOpen')), }; })(AppContainer))); diff --git a/bigbluebutton-html5/imports/ui/components/chat/component.jsx b/bigbluebutton-html5/imports/ui/components/chat/component.jsx index 9eb1e9eca4..e3e5b49291 100644 --- a/bigbluebutton-html5/imports/ui/components/chat/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/chat/component.jsx @@ -57,7 +57,6 @@ const Chat = (props) => {