     if _.indexOf($scope.usersCommunicatedWith, user.id) == -1 and user.id != $scope.currentUser.id
       User.createConversationWithMessage($scope.currentUser, user, messageText).success (response) ->
         noty { text: 'Successfully sent a message!', type: 'success'}
+        console.log '$scope.messageText: ', $scope.messageText = ''
         $scope.usersCommunicatedWith.push user.id
         reloadUser()
       .error (response) ->


  $scope.search = () ->
    $location.url '/search'

  $scope.searchText = ''

  $scope.filterByNameOrSkill = (users,searchText) ->
    filteredUsers = []

Grasshopper.controller "SearchCtrl", ['$scope', '$location', 'User', '$http', ($scope, $location, User, $http) ->

  reloadUser = () ->
    User.loadCurrentUser().then (data) ->
