     wrapper.addSubView @inviteChannel = new kd.ButtonView
       cssClass : 'solid medium green invite-members'
       title    : titleHelper @counts.general, '#general'
+      callback : =>
+
+        return  unless @users
+
+        channelMemberIds = @allChannels[select.getValue()].members
+        recipients       = @users.filter (user) -> user.id in channelMemberIds
+
+        @sendMessages recipients
+
 
 
   createIndividualInviter: (users) ->
 
-    users = users.filter (user) -> user.id isnt SLACKBOT_ID
+    @users = users = users.filter (user) -> user.id isnt SLACKBOT_ID
 
     @wrapper.addSubView new kd.CustomHTMLView
       tagName : 'h3'

  USERS_URL     = "#{location.origin}/api/social/slack/users"
  CHANNELS_URL  = "#{location.origin}/api/social/slack/channels"
  MESSAGING_URL = "#{location.origin}/api/social/slack/message"
  ICON_URL      = "#{location.origin}/a/images/logos/notify_logo.png"

  constructor: (options = {}, data) ->


kd            = require 'kd'
whoami        = require 'app/util/whoami'
SlackUserItem = require './slackuseritem'
async         = require 'async'

titleDecorator = (channel) -> if channel.is_group then channel.name else "##{channel.name}"

