mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 17:08:57 +01:00
Better filtering of contacts in search
This commit is contained in:
@@ -333,9 +333,15 @@ async function queryConversationsAndContacts(
|
||||
|
||||
const normalizedQuery = removeDiacritics(query);
|
||||
|
||||
const visibleConversations = allConversations.filter(
|
||||
({ activeAt, removalStage }) => {
|
||||
return activeAt != null || removalStage == null;
|
||||
}
|
||||
);
|
||||
|
||||
const searchResults: Array<ConversationType> =
|
||||
filterAndSortConversationsByRecent(
|
||||
allConversations,
|
||||
visibleConversations,
|
||||
normalizedQuery,
|
||||
regionCode
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user