0365018e92
Moderators are able to send a message to the meeting's guest lobby. This new event reaches bbb-web and is sent to the guest user with her/his status response while polling. All guest users that are waiting for acceptance will be able to read this message. enableGuestLobbyMessage is disabled by default.
47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
import React, { PureComponent } from 'react';
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
import Auth from '/imports/ui/services/auth';
|
|
import GuestUsers from '/imports/api/guest-users/';
|
|
import Meetings from '/imports/api/meetings';
|
|
import Service from './service';
|
|
import WaitingComponent from './component';
|
|
|
|
class WaitingContainer extends PureComponent {
|
|
render() {
|
|
return (
|
|
<WaitingComponent {...this.props} />
|
|
);
|
|
}
|
|
}
|
|
|
|
export default withTracker(() => {
|
|
const guestUsers = GuestUsers.find({
|
|
meetingId: Auth.meetingID,
|
|
guest: true,
|
|
approved: false,
|
|
denied: false,
|
|
}).fetch();
|
|
|
|
|
|
const authenticatedUsers = GuestUsers.find({
|
|
meetingId: Auth.meetingID,
|
|
authenticated: true,
|
|
guest: false,
|
|
approved: false,
|
|
denied: false,
|
|
}).fetch();
|
|
|
|
const authenticatedGuest = Meetings.findOne({ meetingId: Auth.meetingID }).usersProp.authenticatedGuest;
|
|
|
|
return {
|
|
guestUsers,
|
|
authenticatedUsers,
|
|
guestUsersCall: Service.guestUsersCall,
|
|
changeGuestPolicy: Service.changeGuestPolicy,
|
|
isGuestLobbyMessageEnabled: Service.isGuestLobbyMessageEnabled,
|
|
setGuestLobbyMessage: Service.setGuestLobbyMessage,
|
|
guestLobbyMessage: Service.getGuestLobbyMessage(),
|
|
authenticatedGuest,
|
|
};
|
|
})(WaitingContainer);
|