Skip to content
Snippets Groups Projects
Commit 66bf8100 authored by Tainan Felipe's avatar Tainan Felipe
Browse files

Fix countdown doesn't appearing in breakout room

parent e2d11f1b
No related branches found
No related tags found
No related merge requests found
...@@ -8,10 +8,15 @@ function breakouts(credentials, moderator) { ...@@ -8,10 +8,15 @@ function breakouts(credentials, moderator) {
requesterUserId, requesterUserId,
} = credentials; } = credentials;
Logger.info(`Publishing Breakouts for ${meetingId} ${requesterUserId}`); Logger.info(`Publishing Breakouts for ${meetingId} ${requesterUserId}`);
if (moderator) { if (moderator) {
const presenterSelector = { const presenterSelector = {
parentMeetingId: meetingId, $or: [
{ parentMeetingId: meetingId },
{ breakoutId: meetingId },
],
}; };
return Breakouts.find(presenterSelector); return Breakouts.find(presenterSelector);
} }
......
...@@ -47,9 +47,9 @@ class Base extends Component { ...@@ -47,9 +47,9 @@ class Base extends Component {
componentWillUpdate() { componentWillUpdate() {
const { approved } = this.props; const { approved } = this.props;
const isLoading = this.state.loading; const { loading } = this.state;
if (approved && isLoading) this.updateLoadingState(false); if (approved && loading) this.updateLoadingState(false);
} }
updateLoadingState(loading = false) { updateLoadingState(loading = false) {
...@@ -131,7 +131,8 @@ const BaseContainer = withTracker(() => { ...@@ -131,7 +131,8 @@ const BaseContainer = withTracker(() => {
}, },
}; };
const subscriptionsHandlers = SUBSCRIPTIONS_NAME.map(name => Meteor.subscribe(name, credentials, subscriptionErrorHandler)); const subscriptionsHandlers = SUBSCRIPTIONS_NAME
.map(name => Meteor.subscribe(name, credentials, subscriptionErrorHandler));
const chats = GroupChat.find({ const chats = GroupChat.find({
$or: [ $or: [
...@@ -147,7 +148,8 @@ const BaseContainer = withTracker(() => { ...@@ -147,7 +148,8 @@ const BaseContainer = withTracker(() => {
const chatIds = chats.map(chat => chat.chatId); const chatIds = chats.map(chat => chat.chatId);
const groupChatMessageHandler = Meteor.subscribe('group-chat-msg', credentials, chatIds, subscriptionErrorHandler); const groupChatMessageHandler = Meteor.subscribe('group-chat-msg', credentials, chatIds, subscriptionErrorHandler);
const User = Users.findOne({ intId: credentials.externUserID }); const User = Users.findOne({ intId: credentials.requesterUserId });
if (User) { if (User) {
const mappedUser = mapUser(User); const mappedUser = mapUser(User);
breakoutRoomSubscriptionHandler = Meteor.subscribe('breakouts', credentials, mappedUser.isModerator, subscriptionErrorHandler); breakoutRoomSubscriptionHandler = Meteor.subscribe('breakouts', credentials, mappedUser.isModerator, subscriptionErrorHandler);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment