 
         switch section {
         case .Friend:
-            return 2
+            return filteredFriends?.count ?? 0
         case .MessageRecord:
             return 2
         case .Feed:


        searchBar.resignFirstResponder()
    }
}

// MARK: - UISearchBarDelegate


import UIKit
import KeyboardMan
import RealmSwift

class SearchConversationsViewController: UIViewController {

