removed dbid

This commit is contained in:
Anton Georgiev 2014-11-27 22:08:33 +00:00
parent 6ba5d39b93
commit b1399a8d40
3 changed files with 1 additions and 9 deletions

View File

@ -258,6 +258,4 @@ Handlebars.registerHelper "visibility", (section) ->
username: getInSession "userName"
userid: getInSession "userId"
authToken: getInSession "authToken"
DBIDinSession: getInSession "DBID"
DBIDfromCol: Meteor.Users.findOne({userId:getInSession 'userId'})?._id
}

View File

@ -1,9 +1,3 @@
@grabAllDBID = ->
array = []
for u in Meteor.Users.find().fetch()
array.push(u._id)
return array
# Helper to load javascript libraries from the BBB server
loadLib = (libname) ->
successCallback = ->

View File

@ -48,7 +48,7 @@
'from_color': '0x3399FF' # A nice blue in hex
]
else
me = getInSession("DBID")
me = getInSession("userId")
after = Meteor.Chat.find({ # find all messages between current user and recipient
'message.chat_type': 'PRIVATE_CHAT',
$or: [{'message.from_userid': me, 'message.to_userid': friend},{'message.from_userid': friend, 'message.to_userid': me}]