not needed anymore
This commit is contained in:
parent
e7b6a48934
commit
a544329079
@ -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) ->
|
||||
|
@ -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, ->
|
||||
|
Loading…
Reference in New Issue
Block a user