Add user verification in 2 spots and Fiz join breakout opening into breakout
This commit is contained in:
parent
0727f87cf9
commit
eafd7f6673
@ -21,7 +21,7 @@ function meetings(credentials, isModerator = false) {
|
||||
|
||||
if (isModerator) {
|
||||
const User = Users.findOne({ userId: requesterUserId });
|
||||
if (User.moderator) {
|
||||
if (!!User && User.moderator) {
|
||||
selector.$or.push({
|
||||
'meetingProp.isBreakout': true,
|
||||
'breakoutProps.parentId': meetingId,
|
||||
|
@ -58,7 +58,7 @@ function users(credentials, isModerator = false) {
|
||||
|
||||
if (isModerator) {
|
||||
const User = Users.findOne({ userId: requesterUserId });
|
||||
if (User.moderator) {
|
||||
if (!!User && User.moderator) {
|
||||
selector.$or.push({
|
||||
'breakoutProps.isBreakoutUser': true,
|
||||
'breakoutProps.parentId': meetingId,
|
||||
|
@ -162,7 +162,10 @@ class NavBar extends PureComponent {
|
||||
|
||||
breakouts.forEach((breakout) => {
|
||||
const userOnMeeting = breakout.users.filter(u => u.userId === Auth.userID).length;
|
||||
if (breakout.freeJoin && !didSendBreakoutInvite && !userOnMeeting) {
|
||||
if (breakout.freeJoin
|
||||
&& !didSendBreakoutInvite
|
||||
&& !userOnMeeting
|
||||
&& !isBreakoutRoom) {
|
||||
this.inviteUserToBreakout(breakout);
|
||||
this.setState({ didSendBreakoutInvite: true });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user