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 { withTracker } from 'meteor/react-meteor-data';
|
||||||
import Users from '/imports/api/users/';
|
import Users from '/imports/api/users/';
|
||||||
import Auth from '/imports/ui/services/auth';
|
import Auth from '/imports/ui/services/auth';
|
||||||
import mapUser from '/imports/ui/services/user/mapUser';
|
|
||||||
import {
|
import {
|
||||||
isVideoBroadcasting, presenterScreenshareHasEnded, unshareScreen,
|
isVideoBroadcasting, presenterScreenshareHasEnded, unshareScreen,
|
||||||
presenterScreenshareHasStarted,
|
presenterScreenshareHasStarted,
|
||||||
@ -19,9 +18,8 @@ const ScreenshareContainer = (props) => {
|
|||||||
|
|
||||||
export default withTracker(() => {
|
export default withTracker(() => {
|
||||||
const user = Users.findOne({ userId: Auth.userID });
|
const user = Users.findOne({ userId: Auth.userID });
|
||||||
const MappedUser = mapUser(user);
|
|
||||||
return {
|
return {
|
||||||
isPresenter: MappedUser.isPresenter,
|
isPresenter: user.presenter,
|
||||||
unshareScreen,
|
unshareScreen,
|
||||||
isVideoBroadcasting,
|
isVideoBroadcasting,
|
||||||
presenterScreenshareHasStarted,
|
presenterScreenshareHasStarted,
|
||||||
|
Loading…
Reference in New Issue
Block a user