Move a couple calls to update VideoLayout into the redux update flow (#3173)

* ref(video-layout): move middleware for TRACK_ADDED

* ref(video-layout): call mucJoined when redux knowns of conference join
This commit is contained in:
virtuacoplenny
2018-06-21 21:33:33 -07:00
committed by bbaldino
parent 11c9d5f0ef
commit 2bd0f77671
4 changed files with 14 additions and 27 deletions

View File

@@ -267,16 +267,6 @@ UI.initConference = function() {
followMeHandler = new FollowMe(APP.conference, UI);
};
UI.mucJoined = function() {
VideoLayout.mucJoined();
// Update local video now that a conference is joined a user ID should be
// set.
UI.changeDisplayName(
'localVideoContainer',
APP.conference.getLocalDisplayName());
};
/** *
* Handler for toggling filmstrip
*/
@@ -415,13 +405,6 @@ UI.addLocalStream = track => {
}
};
/**
* Show remote stream on UI.
* @param {JitsiTrack} track stream to show
*/
UI.addRemoteStream = track => VideoLayout.onRemoteStreamAdded(track);
/**
* Removed remote stream from UI.
* @param {JitsiTrack} track stream to remove