Remove browser info for users.
This commit is contained in:
+1
-14
@@ -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;
|
||||
|
||||
+1
-4
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user