we now subscribe to stay up to date only with our meeting's users
This commit is contained in:
parent
eb5703b5d8
commit
8d5f3170cc
@ -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
|
||||
|
@ -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) ->
|
||||
|
@ -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})
|
@ -1,7 +1,7 @@
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Startup
|
||||
//
|
||||
|
||||
/*
|
||||
Meteor.startup(function () {
|
||||
console.log('server start');
|
||||
// cleanup collections
|
||||
@ -23,3 +23,4 @@ Meteor.startup(function () {
|
||||
SetCollectionPermissions();
|
||||
|
||||
});
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user