Remove browser info for users.

master
Håvar Aambø Fosstveit 2019-11-07 10:01:26 +01:00
parent 5cdf0baac4
commit 69677e4972
8 changed files with 4 additions and 56 deletions

View File

@ -2024,7 +2024,6 @@ export default class RoomClient
{
displayName : displayName,
picture : picture,
device : this._device,
rtpCapabilities : this._mediasoupDevice.rtpCapabilities
});

View File

@ -1,7 +1,7 @@
export const setMe = ({ peerId, device, loginEnabled }) =>
export const setMe = ({ peerId, loginEnabled }) =>
({
type : 'SET_ME',
payload : { peerId, device, loginEnabled }
payload : { peerId, loginEnabled }
});
export const loggedIn = (flag) =>

View File

@ -2,7 +2,6 @@ import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import * as appPropTypes from '../appPropTypes';
import EditableInput from '../Controls/EditableInput';
const styles = (theme) =>
@ -105,16 +104,6 @@ const styles = (theme) =>
{
backgroundColor : 'rgb(174, 255, 0, 0.25)'
}
},
deviceInfo :
{
'& span' :
{
userSelect : 'none',
pointerEvents : 'none',
fontSize : 11,
color : 'rgba(255, 255, 255, 0.55)'
}
}
});
@ -143,7 +132,6 @@ class VideoView extends React.PureComponent
const {
isMe,
isScreen,
peer,
displayName,
showPeerInfo,
videoContain,
@ -204,14 +192,6 @@ class VideoView extends React.PureComponent
{displayName}
</span>
}
{ advancedMode &&
<div className={classes.deviceInfo}>
<span>
{peer.device.name} {Math.floor(peer.device.version) || null}
</span>
</div>
}
</div>
</div>
}
@ -315,8 +295,6 @@ VideoView.propTypes =
{
isMe : PropTypes.bool,
isScreen : PropTypes.bool,
peer : PropTypes.oneOfType(
[ appPropTypes.Me, appPropTypes.Peer ]),
displayName : PropTypes.string,
showPeerInfo : PropTypes.bool,
videoContain : PropTypes.bool,

View File

@ -8,17 +8,9 @@ export const Room = PropTypes.shape(
activeSpeakerId : PropTypes.string
});
export const Device = PropTypes.shape(
{
flag : PropTypes.string.isRequired,
name : PropTypes.string.isRequired,
version : PropTypes.string
});
export const Me = PropTypes.shape(
{
id : PropTypes.string.isRequired,
device : Device.isRequired,
canSendMic : PropTypes.bool.isRequired,
canSendWebcam : PropTypes.bool.isRequired,
webcamInProgress : PropTypes.bool.isRequired
@ -39,7 +31,6 @@ export const Peer = PropTypes.shape(
{
id : PropTypes.string.isRequired,
displayName : PropTypes.string,
device : Device.isRequired,
consumers : PropTypes.arrayOf(PropTypes.string).isRequired
});

View File

@ -98,7 +98,6 @@ function run()
store.dispatch(
meActions.setMe({
peerId,
device,
loginEnabled : window.config.loginEnabled
})
);

View File

@ -1,7 +1,6 @@
const initialState =
{
id : null,
device : null,
picture : null,
canSendMic : false,
canSendWebcam : false,
@ -27,14 +26,12 @@ const me = (state = initialState, action) =>
{
const {
peerId,
device,
loginEnabled
} = action.payload;
return {
...state,
id : peerId,
device,
loginEnabled
};
}

View File

@ -30,8 +30,6 @@ class Peer extends EventEmitter
this._email = null;
this._device = null;
this._rtpCapabilities = null;
this._raisedHand = false;
@ -229,16 +227,6 @@ class Peer extends EventEmitter
this._email = email;
}
get device()
{
return this._device;
}
set device(device)
{
this._device = device;
}
get rtpCapabilities()
{
return this._rtpCapabilities;
@ -331,8 +319,7 @@ class Peer extends EventEmitter
{
id : this.id,
displayName : this.displayName,
picture : this.picture,
device : this.device
picture : this.picture
};
return peerInfo;

View File

@ -412,14 +412,12 @@ class Room extends EventEmitter
const {
displayName,
picture,
device,
rtpCapabilities
} = request.data;
// Store client data into the Peer data object.
peer.displayName = displayName;
peer.picture = picture;
peer.device = device;
peer.rtpCapabilities = rtpCapabilities;
// Tell the new Peer about already joined Peers.
@ -456,8 +454,7 @@ class Room extends EventEmitter
{
id : peer.id,
displayName : displayName,
picture : picture,
device : device
picture : picture
},
true
);