mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Add "Group Members" section to ConversationList search results.
This commit is contained in:
committed by
Greyson Parrelli
parent
e84c6187b9
commit
09902e5d11
@@ -190,19 +190,10 @@ public class SearchRepository {
|
||||
}
|
||||
}
|
||||
|
||||
Set<RecipientId> groupsByMemberIds = new LinkedHashSet<>();
|
||||
|
||||
try (GroupTable.Reader reader = SignalDatabase.groups().queryGroupsByMembership(filteredContacts, true, false, false)) {
|
||||
while ((record = reader.getNext()) != null) {
|
||||
groupsByMemberIds.add(record.getRecipientId());
|
||||
}
|
||||
}
|
||||
|
||||
LinkedHashSet<ThreadRecord> output = new LinkedHashSet<>();
|
||||
|
||||
output.addAll(getMatchingThreads(contactIds, unreadOnly));
|
||||
output.addAll(getMatchingThreads(groupsByTitleIds, unreadOnly));
|
||||
output.addAll(getMatchingThreads(groupsByMemberIds, unreadOnly));
|
||||
|
||||
return new ArrayList<>(output);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user