User directory: Display "Search in progress..." instead of "No results" when we are searching

This commit is contained in:
manuroe
2017-07-28 15:24:25 +02:00
parent afeeaadae7
commit b6c0016176
+9 -1
View File
@@ -600,7 +600,15 @@
// Check whether a search session is in progress
if (currentSearchText.length)
{
tableViewCell.textLabel.text = NSLocalizedStringFromTable(@"search_no_result", @"Vector", nil);
if (indexPath.section == filteredMatrixContactsSection &&
(_userDirectoryState == ContactsDataSourceUserDirectoryStateLoading || _userDirectoryState == ContactsDataSourceUserDirectoryStateOfflineLoading))
{
tableViewCell.textLabel.text = [NSBundle mxk_localizedStringForKey:@"search_searching"];
}
else
{
tableViewCell.textLabel.text = NSLocalizedStringFromTable(@"search_no_result", @"Vector", nil);
}
}
else if (indexPath.section == filteredLocalContactsSection)
{