not needed anymore

This commit is contained in:
Anton Georgiev 2014-11-21 17:52:14 +00:00
parent e7b6a48934
commit a544329079
2 changed files with 1 additions and 9 deletions

View File

@ -187,12 +187,6 @@ Handlebars.registerHelper "visibility", (section) ->
unless chatTabs.findOne({userId: u.userId})?
chatTabs.insert({ userId: u.userId, name: u.username, gotMail: false, class: "privateChatTab"})
@sendMeetingInfoToClient = (meetingId, userId) ->
setInSession("userId", userId)
setInSession("meetingId", meetingId)
setInSession("meetingName", null)
setInSession("userName", null)
@setInSession = (k, v) -> SessionAmplify.set k, v
@safeString = (str) ->

View File

@ -15,9 +15,6 @@
setInSession("meetingId", meetingId)
setInSession("userId", userId)
if Meteor.isClient #TODO try to get rid of this
sendMeetingInfoToClient(meetingId, userId) #TODO try to get rid of this
Meteor.subscribe 'users', meetingId, userId, authToken, ->
console.log "now I have access to the users from the client. my userid is #{userId} _#{Meteor.Users.find().count()}__"
Meteor.subscribe 'chat', meetingId, userId, authToken, ->
@ -31,6 +28,7 @@
authToken = getInSession 'authToken'
meetingId = getInSession 'meetingId'
userId = getInSession 'userId'
console.log "currently #{authToken} #{meetingId} #{userId}"
Meteor.subscribe 'chat', meetingId, userId, authToken, ->
Meteor.subscribe 'shapes', meetingId, ->
Meteor.subscribe 'slides', meetingId, ->