       title: "Send"
       style: "clean-gray inside-button"
       callback: =>
-        input = @recipient.getView()
+        input = @mentionController.getView()
         chatMsg = input.getValue()
 
         input.setValue ""

    """

class ChannelListItemView extends KDListItemView
  viewAppended: ->
    @setTemplate @pistachio()
    @template.update()

  pistachio: ->
    "<p>{{#(name)}} - {{#(status)}} </p>"

class ChatInputForm extends KDFormView
  constructor: ->
    super
    @input = new KDInputView
      placeholder: "Click here to reply"
      name: "chatInput"
      cssClass: "fl"
      validate      :
        rules       :

      submitValuesAsText  : yes
      dataSource          : (args, callback)=>
        {inputValue} = args
        blacklist = (data.getId() for data in @mentionController.getSelectedItemData())
        @getDelegate().propagateEvent KDEventType : "AutoCompleteNeedsMemberData", {inputValue,blacklist,callback}

    @mentionAutoCompleteView = @mentionController.getView()

  viewAppended: ->
    @setTemplate @pistachio()
