Fix PNI normalization in conversation selectors

This commit is contained in:
Fedor Indutny 2024-02-01 13:05:22 -08:00 committed by GitHub
parent e4b231db1f
commit 9bb0a46aad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 99 additions and 12 deletions

View file

@ -38,6 +38,7 @@ import type { ContactNameColorType } from '../../types/Colors';
import { ContactNameColors } from '../../types/Colors';
import type { AvatarDataType } from '../../types/Avatar';
import type { AciString, ServiceIdString } from '../../types/ServiceId';
import { normalizeServiceId } from '../../types/ServiceId';
import { isInSystemContacts } from '../../util/isInSystemContacts';
import { isSignalConnection } from '../../util/getSignalConnections';
import { sortByTitle } from '../../util/sortByTitle';
@ -821,7 +822,7 @@ export const getConversationSelector = createSelector(
const onServiceId = getOwn(
byServiceId,
id.toLowerCase ? id.toLowerCase() : id
normalizeServiceId(id, 'getConversationSelector')
);
if (onServiceId) {
return selector(onServiceId);