Bug Fix - Switching network filter in room directory is ignored when searching the dir

Search is working well, but it takes time. We add "Searching..." string to improve the UX

#1579
This commit is contained in:
Giom Foret
2017-10-16 16:32:39 +02:00
parent ee13791a3d
commit d045bad462
3 changed files with 12 additions and 2 deletions
@@ -356,8 +356,15 @@ double const kPublicRoomsDirectoryDataExpiration = 10;
}
else
{
// Show nothing while loading and in other cases
tableViewCell.textLabel.text = @"";
if (_searchPattern.length)
{
tableViewCell.textLabel.text = NSLocalizedStringFromTable(@"search_in_progress", @"Vector", nil);
}
else
{
// Show nothing in other cases
tableViewCell.textLabel.text = @"";
}
}
return tableViewCell;