Skip to content

Commit

Permalink
Step 6.4: Add users subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB authored and Dotan Simha committed Nov 23, 2016
1 parent 177af79 commit cea52a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/scripts/controllers/new-chat.controller.js
Expand Up @@ -6,6 +6,8 @@ export default class NewChatCtrl extends Controller {
constructor() {
super(...arguments);

this.subscribe('users');

this.helpers({
users() {
return Meteor.users.find({ _id: { $ne: this.currentUserId } });
Expand Down

0 comments on commit cea52a4

Please sign in to comment.