Skip to content

Commit

Permalink
ref(video-layout): remove unused param in addParticipantContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuacoplenny committed Jun 1, 2018
1 parent 1e3dc20 commit 6f962be
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions modules/UI/videolayout/VideoLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,18 +432,11 @@ const VideoLayout = {
* Creates or adds a participant container for the given id and smallVideo.
*
* @param {JitsiParticipant} user the participant to add
* @param {SmallVideo} smallVideo optional small video instance to add as a
* remote video, if undefined <tt>RemoteVideo</tt> will be created
*/
addParticipantContainer(user, smallVideo) {
addParticipantContainer(user) {
const id = user.getId();
let remoteVideo;
const remoteVideo = new RemoteVideo(user, VideoLayout, eventEmitter);

if (smallVideo) {
remoteVideo = smallVideo;
} else {
remoteVideo = new RemoteVideo(user, VideoLayout, eventEmitter);
}
this._setRemoteControlProperties(user, remoteVideo);
this.addRemoteVideoContainer(id, remoteVideo);

Expand Down

0 comments on commit 6f962be

Please sign in to comment.