 
   { SET_CHANNEL_PARTICIPANTS_DROPDOWN_VISIBILITY } = actionTypes
   dispatch SET_CHANNEL_PARTICIPANTS_DROPDOWN_VISIBILITY, { visible }
+
+
+inviteMember = (invites, callback = kd.noop) ->
+
+  { INVITE_MEMBER_SUCCESS, INVITE_MEMBER_FAIL } = actionTypes
+
+  remote.api.JInvitation.create invitations: invites, (err) =>
+    if err
+      showError 'Failed to send invite, please try again.'
+      return dispatch actionTypes.INVITE_MEMBER_FAIL, invites
+
+    dispatch actionTypes.INVITE_MEMBER_SUCCESS, invites
+    showNotification 'Invitation sent.', type: 'main'
+    callback()
 
 
 emptyPromise = new Promise (resolve) -> resolve()

remote                  = require('app/remote').getInstance()
{ actions: appActions } = require 'app/flux'
getters                 = require 'activity/flux/getters'

dispatch = (args...) -> kd.singletons.reactor.dispatch args...


  deletePrivateChannel
  glance
  leavePrivateChannel
  inviteMember
}

