Skip to content

Commit

Permalink
Merge pull request #7700 from capilkey/fix-vu-regression
Browse files Browse the repository at this point in the history
Fix regression from #7606
  • Loading branch information
antobinary committed Jun 28, 2019
2 parents f19ba4d + cef9132 commit d50e1d8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import addUser from '../modifiers/addUser';
export default function handleUserJoined({ body }, meetingId) {
const user = body;

user.moderator = user.moderator || false;
check(user, Object);

return addUser(meetingId, user);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default function addUser(meetingId, user) {
guestStatus: String,
emoji: String,
presenter: Boolean,
moderator: Boolean,
locked: Boolean,
avatar: String,
clientType: String,
Expand Down
4 changes: 2 additions & 2 deletions bigbluebutton-html5/imports/startup/server/redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class MeetingMessageQueue {
};

const onError = (reason) => {
this.debug(`${eventName}: ${reason.stack ? reason.stack : reason}`);
Logger.error(`${eventName}: ${reason.stack ? reason.stack : reason}`);
callNext();
};

Expand Down Expand Up @@ -109,7 +109,7 @@ class RedisPubSub {
const redisConf = Meteor.settings.private.redis;
const { password, port } = redisConf;

if (!!password) {
if (password) {
this.pub = Redis.createClient({ host, port, password });
this.sub = Redis.createClient({ host, port, password });
this.pub.auth(password);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ import Users from '/imports/api/users/';
import LockViewersService from '/imports/ui/components/lock-viewers/service';
import ManyUsersComponent from './component';

const USER_CONFIG = Meteor.settings.public.user;
const ROLE_MODERATOR = USER_CONFIG.role_moderator;
const ROLE_VIEWER = USER_CONFIG.role_viewer;

export default withTracker(() => ({
viewersInWebcam: Users.find({
meetingId: Auth.meetingID,
hasStream: true,
moderator: false,
role: ROLE_VIEWER,
presenter: false,
}).count(),
currentUserIsModerator: Users.findOne({ userId: Auth.userID }).moderator,
currentUserIsModerator: Users.findOne({ userId: Auth.userID }).role === ROLE_MODERATOR,
lockSettings: Meetings.findOne({ meetingId: Auth.meetingID }).lockSettingsProps,
webcamOnlyForModerator: Meetings.findOne({
meetingId: Auth.meetingID,
Expand Down

0 comments on commit d50e1d8

Please sign in to comment.