fix contacts search in new closed group page

pull/689/head
ryanzhao 2 years ago
parent 65d615ef24
commit 11071c3dbc

@ -22,7 +22,7 @@ private final class TableView: UITableView {
final class NewClosedGroupVC: BaseVC, UITableViewDataSource, UITableViewDelegate, TableViewTouchDelegate, UITextFieldDelegate, UIScrollViewDelegate {
private let contactProfiles: [Profile] = Profile.fetchAllContactProfiles(excludeCurrentUser: true)
private var searchResults: [Profile] {
return searchText.isEmpty ? contactProfiles : contactProfiles.filter { $0.displayName().contains(searchText) }
return searchText.isEmpty ? contactProfiles : contactProfiles.filter { $0.displayName().range(of: searchText, options: [.caseInsensitive]) != nil }
}
private var selectedContacts: Set<String> = []
private var searchText: String = ""

Loading…
Cancel
Save