Include group titles in search

When searching for messages only simple threads matching the
contact names are returned as search results. With this commit
also group converstations where the group title matches the search
term are displayed in the result. This makes search results more
consistent with the conversation list as now all conversation
titles (i.e. contact names and group titles) are searched through.

Fixes #1954
Closes #2216
This commit is contained in:
Oliver Gasser
2014-12-14 14:53:56 +01:00
committed by Moxie Marlinspike
parent e8b947dfde
commit 33d466a5cc
3 changed files with 36 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ public class ConversationListLoader extends AbstractCursorLoader {
public Cursor getCursor() {
if (filter != null && filter.trim().length() != 0) {
List<String> numbers = ContactAccessor.getInstance()
.getNumbersForThreadSearchFilter(filter, context.getContentResolver());
.getNumbersForThreadSearchFilter(filter, context);
return DatabaseFactory.getThreadDatabase(context).getFilteredConversationList(numbers);
} else {