lib/lita/adapters/slack.rb
# Returns the user of an im
Returns the user of an im
Returns the user of an im
def im_roster(room_id, api)
        response = api.mpim_list
        im = response['ims'].select { |hash| hash['id'].eql? room_id }.first
        im.nil? ? '' : im['user']
      end
def im_roster ( room_id , api ) response = api . mpim_list im = response [ 'ims' ] . select { | hash | hash [ 'id' ] . eql? room_id } . first im . nil? ? '' : im [ 'user' ] end
Returns the user of an im
Returns the user of an im
room_id
<not_specific>
api
<not_specific>