Skip to content

Commit

Permalink
Fixes for lock room causing issues sometimes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leticia Choo committed Jan 19, 2016
1 parent 8eaa240 commit d2b9823
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/jsx/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ define([
});
}

if(self.state.users.length === Configs.maxUsers) {
Skylink.lockRoom();
}
else if(self.state.users.length >= 2) {
state.controls = false;
}

self.setState(state);
});

Expand All @@ -146,13 +153,6 @@ define([
})
};

if(self.state.users.length === Configs.maxUsers) {
Skylink.lockRoom();
}
else if(self.state.users.length >= 2) {
state.controls = false;
}

self.setState(state);
});

Expand Down

0 comments on commit d2b9823

Please sign in to comment.