bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/chat/chat-dropdown/container.jsx

20 lines
585 B
JavaScript

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import Auth from '/imports/ui/services/auth';
import Meetings from '/imports/api/meetings';
import ChatDropdown from './component';
const ChatDropdownContainer = ({ ...props }) => <ChatDropdown {...props} />;
export default withTracker(() => {
const getMeetingName = () => {
const m = Meetings.findOne({ meetingId: Auth.meetingID },
{ fields: { 'meetingProp.name': 1 } });
return m.meetingProp.name;
};
return {
meetingName: getMeetingName(),
};
})(ChatDropdownContainer);