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

22 lines
678 B
React
Raw Normal View History

import React, { memo } from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import UserListService from '/imports/ui/components/user-list/service';
2017-03-29 02:41:48 +08:00
import Settings from '/imports/ui/services/settings';
import ChatAlert from './component';
const ChatAlertContainer = props => (
<ChatAlert {...props} />
);
export default withTracker(() => {
2017-03-29 02:41:48 +08:00
const AppSettings = Settings.application;
const openChats = UserListService.getOpenChats();
return {
2018-08-15 10:35:58 +08:00
disableAudio: !AppSettings.chatAudioAlerts,
disableNotify: !AppSettings.chatPushAlerts,
openChats,
publicUserId: Meteor.settings.public.chat.public_group_id,
};
})(memo(ChatAlertContainer));