 
     func searchBar(searchBar: UISearchBar, textDidChange searchText: String) {
 
-        searchControllerIsActive = !searchText.isEmpty
+        //searchControllerIsActive = !searchText.isEmpty
 
         updateSearchResultsWithText(searchText)
     }


    private func friendAtIndexPath(indexPath: NSIndexPath) -> User? {
        let index = indexPath.row
        let friend = searchControllerIsActive ? filteredFriends?[safe: index] : friends[safe: index]
        return friend
    }



        switch section {
        case .Local:
            //return searchControllerIsActive ? (filteredFriends?.count ?? 0) : friends.count
            return filteredFriends?.count ?? 0
        case .Online:
            //return searchControllerIsActive ? searchedUsers.count : 0
            return searchedUsers.count
        }
    }

