|
@@ -9,6 +9,7 @@ class NewChatViewController: UITableViewController {
|
|
private let sectionImportedContacts = 1
|
|
private let sectionImportedContacts = 1
|
|
private let sectionNewRowNewGroup = 0
|
|
private let sectionNewRowNewGroup = 0
|
|
private let sectionNewRowNewContact = 1
|
|
private let sectionNewRowNewContact = 1
|
|
|
|
+ private let sectionNewRowCount = 2
|
|
|
|
|
|
private lazy var searchController: UISearchController = {
|
|
private lazy var searchController: UISearchController = {
|
|
let searchController = UISearchController(searchResultsController: nil)
|
|
let searchController = UISearchController(searchResultsController: nil)
|
|
@@ -134,7 +135,7 @@ class NewChatViewController: UITableViewController {
|
|
|
|
|
|
override func tableView(_: UITableView, numberOfRowsInSection section: Int) -> Int {
|
|
override func tableView(_: UITableView, numberOfRowsInSection section: Int) -> Int {
|
|
if section == sectionNew {
|
|
if section == sectionNew {
|
|
- return 2
|
|
|
|
|
|
+ return sectionNewRowCount
|
|
} else if section == sectionImportedContacts {
|
|
} else if section == sectionImportedContacts {
|
|
if deviceContactAccessGranted {
|
|
if deviceContactAccessGranted {
|
|
return isFiltering() ? filteredContacts.count : contacts.count
|
|
return isFiltering() ? filteredContacts.count : contacts.count
|