2019-01-15 05:39:03 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
|
|
import { makeCall } from '/imports/ui/services/api';
|
|
|
|
import EndMeetingComponent from './component';
|
2020-06-26 20:45:03 +08:00
|
|
|
import Service from './service';
|
2020-09-25 02:45:52 +08:00
|
|
|
import logger from '/imports/startup/client/logger';
|
2019-01-15 05:39:03 +08:00
|
|
|
|
2022-03-03 01:11:05 +08:00
|
|
|
const EndMeetingContainer = (props) => <EndMeetingComponent {...props} />;
|
2019-01-15 05:39:03 +08:00
|
|
|
|
2023-03-21 21:00:46 +08:00
|
|
|
export default withTracker((props) => ({
|
2019-01-15 05:39:03 +08:00
|
|
|
endMeeting: () => {
|
2020-09-25 02:45:52 +08:00
|
|
|
logger.warn({
|
|
|
|
logCode: 'moderator_forcing_end_meeting',
|
|
|
|
extraInfo: { logType: 'user_action' },
|
|
|
|
}, 'this user clicked on EndMeeting and confirmed, removing everybody from the meeting');
|
2019-01-18 00:33:43 +08:00
|
|
|
makeCall('endMeeting');
|
2023-03-21 21:00:46 +08:00
|
|
|
props.setIsOpen(false);
|
2019-01-15 05:39:03 +08:00
|
|
|
},
|
2021-01-21 04:49:07 +08:00
|
|
|
meetingTitle: Service.getMeetingTitle(),
|
2020-06-26 20:45:03 +08:00
|
|
|
users: Service.getUsers(),
|
2023-03-21 21:00:46 +08:00
|
|
|
}))(EndMeetingContainer);
|