change public chat id for unread messages search

This commit is contained in:
Joao Siebel 2018-08-01 14:03:12 -03:00
parent 03389a8adc
commit e3ec9853b3

View File

@ -11,7 +11,7 @@ import Service from './service';
import NavBar from './component';
const PUBLIC_CONFIG = Meteor.settings.public;
const PUBLIC_CHAT_KEY = PUBLIC_CONFIG.chat.public_id;
const PUBLIC_GROUP_CHAT_ID = PUBLIC_CONFIG.chat.public_group_id;
const CLIENT_TITLE = PUBLIC_CONFIG.app.clientTitle;
const NavBarContainer = ({ children, ...props }) => (
@ -45,7 +45,7 @@ export default withRouter(withTracker(({ location, router }) => {
return users
.map(user => user.id)
.filter(userID => userID !== Auth.userID)
.concat(PUBLIC_CHAT_KEY)
.concat(PUBLIC_GROUP_CHAT_ID)
.some(receiverID => ChatService.hasUnreadMessages(receiverID));
};