we now subscribe to stay up to date only with our meeting's users

This commit is contained in:
Anton Georgiev 2014-06-19 15:36:51 +00:00
parent eb5703b5d8
commit 8d5f3170cc
4 changed files with 7 additions and 5 deletions

View File

@ -34,6 +34,8 @@ Handlebars.registerHelper "getCurrentUser", =>
Meteor.methods
sendMeetingInfoToClient: (meetingId, userId) ->
Session.set("userId", userId)
Session.set("meetingId", meetingId)
console.log "---------------------------------on client, meetingId + userId"
console.log meetingId
console.log userId

View File

@ -5,7 +5,7 @@ Meteor.startup ->
Session.set "display_chatbar", false # false until respective template is created
Session.set "display_whiteboard", false # false until respective template is created
Meteor.subscribe 'users', 'fd9f3cd6ee945175f276098945d37cd4f46f7b4f-1403121629339'
Meteor.subscribe 'users', Session.get('meetingId')
Template.header.events
"click .usersListIcon": (event) ->

View File

@ -1,5 +1,4 @@
# Publish only the users that are in the particular meetingId
# On the client side we pass the meetingId parameter
Meteor.publish 'users', (meetingId) ->
console.log "\n\nKK" + meetingId + "KK\n\n"
Meteor.users.find({meetingId: meetingId})

View File

@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////
// Startup
//
/*
Meteor.startup(function () {
console.log('server start');
// cleanup collections
@ -23,3 +23,4 @@ Meteor.startup(function () {
SetCollectionPermissions();
});
*/