From 1a8740e22d4628db1ebcde352fa935ae225ebf4c Mon Sep 17 00:00:00 2001 From: Chad Pilkey Date: Wed, 21 Aug 2019 13:39:06 -0700 Subject: [PATCH] remove pointless userMap in screenshare view --- .../imports/ui/components/screenshare/container.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/screenshare/container.jsx b/bigbluebutton-html5/imports/ui/components/screenshare/container.jsx index 7aab9fba9b..2a33439abd 100755 --- a/bigbluebutton-html5/imports/ui/components/screenshare/container.jsx +++ b/bigbluebutton-html5/imports/ui/components/screenshare/container.jsx @@ -2,7 +2,6 @@ import React from 'react'; import { withTracker } from 'meteor/react-meteor-data'; import Users from '/imports/api/users/'; import Auth from '/imports/ui/services/auth'; -import mapUser from '/imports/ui/services/user/mapUser'; import { isVideoBroadcasting, presenterScreenshareHasEnded, unshareScreen, presenterScreenshareHasStarted, @@ -19,9 +18,8 @@ const ScreenshareContainer = (props) => { export default withTracker(() => { const user = Users.findOne({ userId: Auth.userID }); - const MappedUser = mapUser(user); return { - isPresenter: MappedUser.isPresenter, + isPresenter: user.presenter, unshareScreen, isVideoBroadcasting, presenterScreenshareHasStarted,