Sort groups you've left to the bottom of search
This commit is contained in:
parent
fcd0a186e0
commit
49bb1321e3
5 changed files with 18 additions and 128 deletions
|
@ -31,7 +31,7 @@ import type { PropsDataType as TimelinePropsType } from '../../components/conver
|
|||
import type { TimelineItemType } from '../../components/conversation/TimelineItem';
|
||||
import { assert } from '../../util/assert';
|
||||
import { isConversationUnregistered } from '../../util/isConversationUnregistered';
|
||||
import { filterAndSortConversationsByTitle } from '../../util/filterAndSortConversations';
|
||||
import { filterAndSortConversationsByRecent } from '../../util/filterAndSortConversations';
|
||||
import type { ContactNameColorType } from '../../types/Colors';
|
||||
import { ContactNameColors } from '../../types/Colors';
|
||||
import type { AvatarDataType } from '../../types/Avatar';
|
||||
|
@ -523,7 +523,7 @@ export const getFilteredComposeContacts = createSelector(
|
|||
contacts: Array<ConversationType>,
|
||||
regionCode: string | undefined
|
||||
): Array<ConversationType> => {
|
||||
return filterAndSortConversationsByTitle(contacts, searchTerm, regionCode);
|
||||
return filterAndSortConversationsByRecent(contacts, searchTerm, regionCode);
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -536,7 +536,7 @@ export const getFilteredComposeGroups = createSelector(
|
|||
groups: Array<ConversationType>,
|
||||
regionCode: string | undefined
|
||||
): Array<ConversationType> => {
|
||||
return filterAndSortConversationsByTitle(groups, searchTerm, regionCode);
|
||||
return filterAndSortConversationsByRecent(groups, searchTerm, regionCode);
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -544,7 +544,7 @@ export const getFilteredCandidateContactsForNewGroup = createSelector(
|
|||
getCandidateContactsForNewGroup,
|
||||
getNormalizedComposerConversationSearchTerm,
|
||||
getRegionCode,
|
||||
filterAndSortConversationsByTitle
|
||||
filterAndSortConversationsByRecent
|
||||
);
|
||||
|
||||
const getGroupCreationComposerState = createSelector(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue