 
     private var realm: Realm!
 
-//    private lazy var oneToOneConversations: Results<Conversation> = {
-//        return oneToOneConversationsInRealm(self.realm)
-//    }()
-
     private lazy var users: Results<User> = {
         return self.realm.objects(User)
     }()

        }

        switch section {
        case .Friend:
            //return filteredFriends?.count ?? 0
            return numberOfRowsWithCountOfItems(countOfFilteredFriends, fold: isMoreFriendsFold)

//            if let count = filteredFriends?.count where count > 0 {
//                return count + 1
//            } else {
//                return 0
//            }
        case .MessageRecord:
            //return countOfFilteredUserMessages
            return numberOfRowsWithCountOfItems(countOfFilteredUserMessages, fold: isMoreUserMessagesFold)

            //return filteredMessages?.count ?? 0
//            if let count = filteredMessages?.count where count > 0 {
//                return count + 1
//            } else {
//                return 0
//            }
        case .Feed:
            //return filteredFeeds?.count ?? 0
            return numberOfRowsWithCountOfItems(countOfFilteredFeeds, fold: isMoreFeedsFold)

//            if let count = filteredFeeds?.count where count > 0 {
//                return count + 1
//            } else {
//                return 0
//            }
        }
    }


        guard !searchText.isEmpty else {
            filteredFriends = nil
            filteredUserMessages = nil
            filteredFeeds = nil

            updateResultsTableView(scrollsToTop: true)
