FS-8640 #resolve Dont clear conference member reservation id on members that dont have a reservation ID

This commit is contained in:
Brian West 2015-12-09 14:18:37 -06:00
parent 2cb7188c17
commit d35d7344be
1 changed files with 4 additions and 0 deletions

View File

@ -82,8 +82,12 @@
function clearMembersResID(preserve) {
$scope.members.forEach(function(member) {
var resID = member.status.video.reservationID;
console.debug("resID to clear: " + resID);
if (resID && preserve && preserve.indexOf(resID) !== -1) return;
if (resID){
console.debug("clearing resid [" + resID + "] from [" + member.id + "]");
$scope.confResID(member.id, resID);
}
});
};