Skip to content

Commit

Permalink
#454 used correct comparator for sharingSearchMinLength and set a new…
Browse files Browse the repository at this point in the history
… default value, if capability does not exists
  • Loading branch information
hosy committed Jul 16, 2019
1 parent f39b614 commit 57d85a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class GroupSharingTableViewController: SharingTableViewController, UISearchResul

func updateSearchResults(for searchController: UISearchController) {
guard let text = searchController.searchBar.text else { return }
if text.count > core?.connection.capabilities?.sharingSearchMinLength?.intValue ?? 1 {
if text.count >= core?.connection.capabilities?.sharingSearchMinLength?.intValue ?? 2 {
if let recipients = recipientSearchController?.recipients, recipients.count > 0,
recipientSearchController?.searchTerm == text,
searchResultsSection == nil {
Expand Down

0 comments on commit 57d85a6

Please sign in to comment.