         @reset()
 
   sendInvite: (account) ->
+    return @emit "UserInviteFailed"  unless account
+
     to           = account.profile.nickname
     nickname     = KD.nick()
     {profile}    = KD.whoami()

        for user in jAccounts
          user.status = userList[user.profile.nickname]
          @createUserView user

  createUserView: (user) ->
    userView      = new KDView


    KD.remote.api.JPrivateMessage.create { to, subject, body }, noop

    @workspaceRef.child("users").child(to).set "invited"
    @emit "UserInvited", to

  returnToInviteView: ->
    for key in ["onlineUsers", "offlineUsers", "invitedUsers"]
