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

22 lines
702 B
JavaScript
Executable File

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import UserListService from '/imports/ui/components/user-list/service';
import Settings from '/imports/ui/services/settings';
import ChatNotification from './component';
const ChatNotificationContainer = props => (
<ChatNotification {...props} />
);
export default withTracker(() => {
const AppSettings = Settings.application;
const openChats = UserListService.getOpenChats();
return {
disableAudio: !AppSettings.chatAudioNotifications,
disableNotify: !AppSettings.chatPushNotifications,
openChats,
publicUserId: Meteor.settings.public.chat.public_userid,
};
})(ChatNotificationContainer);