fix bug in chat with null messages

This commit is contained in:
Henry Oswald 2015-06-23 21:18:08 +01:00
parent 9f677fd767
commit 7af2fc4635

View file

@ -34,6 +34,8 @@ module.exports = MessageManager =
for message in messages for message in messages
do (message) -> do (message) ->
if !message?
return
jobs.push (callback) -> jobs.push (callback) ->
getUserDetails message.user_id.toString(), (error, user) -> getUserDetails message.user_id.toString(), (error, user) ->
return callback(error) if error? return callback(error) if error?