Clean up conversations with UUID as E164

This commit is contained in:
Fedor Indutny 2021-07-13 17:46:02 -07:00 committed by GitHub
parent a22dcc986f
commit 8951665554
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 11 deletions

View file

@ -619,14 +619,14 @@ export const getConversationSelector = createSelector(
return selector(undefined);
}
const onE164 = getOwn(byE164, id);
if (onE164) {
return selector(onE164);
}
const onUuid = getOwn(byUuid, id.toLowerCase ? id.toLowerCase() : id);
if (onUuid) {
return selector(onUuid);
}
const onE164 = getOwn(byE164, id);
if (onE164) {
return selector(onE164);
}
const onGroupId = getOwn(byGroupId, id);
if (onGroupId) {
return selector(onGroupId);