     KD.remote.api.JAccount.byRelevance inputValue,{blacklist},(err,accounts)->
       callback accounts
 
-  createNewMessageModal:(to)->
+  createNewMessageModal:(users)->
     modal = new KDModalViewWithForms
       title                   : "Compose a message"
       content                 : ""


    toField.addSubView recipient.getView()
    toField.addSubView recipientsWrapper
    recipient.setDefaultValue to  if to


  loadView:(mainView)->
    mainView.createCommons()

  sendMessage:(messageDetails, callback)->
    if KD.isGuest()
      return new KDNotificationView
        title : "Sending private message for guests not allowed."

    {subject, body} = messageDetails
    if subject.trim() is ''
      return new KDNotificationView
        title : "Please enter a subject."

    if body.trim() is ''
      return new KDNotificationView
        title : "Please enter a message."

    KD.remote.api.JPrivateMessage.create messageDetails, callback

