2017-07-12 21:18:26 +08:00
|
|
|
import React from 'react';
|
2017-12-07 00:53:16 +08:00
|
|
|
import PropTypes from 'prop-types';
|
2018-01-08 12:44:42 +08:00
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
2018-09-14 02:09:30 +08:00
|
|
|
import getFromUserSettings from '/imports/ui/services/users-settings';
|
2021-05-18 04:25:07 +08:00
|
|
|
import Service from '/imports/ui/components/user-list/service';
|
2017-07-12 21:18:26 +08:00
|
|
|
import UserList from './component';
|
2016-05-20 02:22:56 +08:00
|
|
|
|
2017-12-07 00:53:16 +08:00
|
|
|
const propTypes = {
|
|
|
|
isPublicChat: PropTypes.func.isRequired,
|
|
|
|
setEmojiStatus: PropTypes.func.isRequired,
|
2021-04-07 03:41:33 +08:00
|
|
|
clearAllEmojiStatus: PropTypes.func.isRequired,
|
2017-12-07 00:53:16 +08:00
|
|
|
roving: PropTypes.func.isRequired,
|
2019-04-06 06:32:21 +08:00
|
|
|
requestUserInformation: PropTypes.func.isRequired,
|
2017-12-07 00:53:16 +08:00
|
|
|
};
|
|
|
|
|
2021-08-05 12:22:07 +08:00
|
|
|
const UserListContainer = (props) => <UserList {...props} />;
|
2016-05-20 02:22:56 +08:00
|
|
|
|
2017-12-07 00:53:16 +08:00
|
|
|
UserListContainer.propTypes = propTypes;
|
|
|
|
|
2021-08-05 12:22:07 +08:00
|
|
|
export default withTracker(({ compact }) => (
|
|
|
|
{
|
2021-05-18 04:25:07 +08:00
|
|
|
hasBreakoutRoom: Service.hasBreakoutRoom(),
|
|
|
|
isPublicChat: Service.isPublicChat,
|
|
|
|
setEmojiStatus: Service.setEmojiStatus,
|
|
|
|
clearAllEmojiStatus: Service.clearAllEmojiStatus,
|
|
|
|
roving: Service.roving,
|
|
|
|
CustomLogoUrl: Service.getCustomLogoUrl(),
|
|
|
|
compact,
|
|
|
|
getGroupChatPrivate: Service.getGroupChatPrivate,
|
|
|
|
handleEmojiChange: Service.setEmojiStatus,
|
|
|
|
getEmojiList: Service.getEmojiList(),
|
|
|
|
getEmoji: Service.getEmoji(),
|
|
|
|
showBranding: getFromUserSettings('bbb_display_branding_area', Meteor.settings.public.app.branding.displayBrandingArea),
|
|
|
|
hasPrivateChatBetweenUsers: Service.hasPrivateChatBetweenUsers,
|
|
|
|
toggleUserLock: Service.toggleUserLock,
|
|
|
|
requestUserInformation: Service.requestUserInformation,
|
2021-08-05 12:22:07 +08:00
|
|
|
}
|
|
|
|
))(UserListContainer);
|