     "#{conversation_id} as read"
     @post "message/mark_read/#{conversation_id}", {
       message_nr: message_nr
-      }, (err, resp) ->
+      }, (err, resp) =>
       @robot.logger.debug 'Message marked as read.' if err is null
 
   # Change the topic of a conversation

      topic: null, # Topic is currently empty, the default is the bot's name
      emails:envelope.user.email,
      message: message
    }, (err, resp) ->
      if err isnt null
        @robot.logger.error 'Unable to send a 1:1 message: '+JSON.stringify err



  # Destroy Fleep session
  logout: ->
    @post 'account/logout', {}, (err, resp) =>
      if err isnt null
        return @robot.logger.error 'Unable to destroy Fleep session'
      @robot.logger.debug 'User session with Fleep closed.'
