Skip to content
Snippets Groups Projects
Commit e3ec9853 authored by Joao Siebel's avatar Joao Siebel
Browse files

change public chat id for unread messages search

parent 03389a8a
No related branches found
No related tags found
No related merge requests found
......@@ -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));
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment