       submitValuesAsText  : yes
       dataSource          : (args, callback)=>
         {inputValue} = args
-        @inviteByUsername.emit 'AutoCompleteNeedsMemberData', {inputValue,callback}
+        blacklist = (data.getId() for data in recipient.getSelectedItemData())
+        @inviteByUsername.emit 'AutoCompleteNeedsMemberData', {inputValue,blacklist,callback}
 
     recipientField.addSubView recipient.getView()
     recipientField.addSubView recipientsWrapper

    </div>
    """

class GroupsInvitationRequestsModalView extends KDModalView
  constructor:(options = {}, data)->
    options.cssClass or= 'invitations-request-modal'

      cssClass: 'completed-items'

    @inviteByUsername.on 'AutoCompleteNeedsMemberData', (event)=>
      {callback,blacklist,inputValue} = event
      @fetchBlacklistForInviteByUsernameModal (ids)->
        blacklist.push id for id in ids
        KD.remote.api.JAccount.byRelevance inputValue, {blacklist}, (err,accounts)->
          callback accounts

    recipient = new KDAutoCompleteController
      name                : 'recipient'
