mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 12:32:17 +00:00
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:
committed by
Moxie Marlinspike
parent
e8b947dfde
commit
33d466a5cc
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user