Search in viewer list by contained term (#2861)

Searching for users in the viewer list now searches anywhere in the user's name - instead of just searching at the beginning of the username.
This commit is contained in:
Tal Neoran
2021-06-04 13:51:35 +03:00
committed by GitHub
parent 508fea6382
commit 80fed27b4e
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -722,7 +722,7 @@ void Split::showViewerList()
auto query = searchBar->text();
if (!query.isEmpty())
{
auto results = chattersList->findItems(query, Qt::MatchStartsWith);
auto results = chattersList->findItems(query, Qt::MatchContains);
chattersList->hide();
resultList->clear();
for (auto &item : results)