Merge pull request #7968 from capilkey/remove-ss-mapuser
Remove pointless userMap in screenshare view
This commit is contained in:
commit
1aa7c04b52
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user