Use UUIDs in group database schema

This commit is contained in:
Fedor Indutny 2021-10-26 15:59:08 -07:00 committed by GitHub
parent 74fde10ff5
commit 63fcdbe787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
79 changed files with 4530 additions and 3664 deletions

View file

@ -20,7 +20,7 @@ import type { ConversationType } from '../ducks/conversations';
import { getIntl } from '../selectors/user';
import {
getConversationByIdSelector,
getConversationByUuidSelector,
getConversationMessagesSelector,
getConversationSelector,
getConversationsByTitleSelector,
@ -208,11 +208,11 @@ const getWarning = (
return undefined;
}
const getConversationById = getConversationByIdSelector(state);
const getConversationByUuid = getConversationByUuidSelector(state);
const { memberships } = getGroupMemberships(
conversation,
getConversationById
getConversationByUuid
);
const groupNameCollisions = getCollisionsFromMemberships(memberships);
const hasGroupMembersWithSameName = !isEmpty(groupNameCollisions);
@ -244,7 +244,7 @@ const getContactSpoofingReview = (
}
const conversationSelector = getConversationSelector(state);
const getConversationById = getConversationByIdSelector(state);
const getConversationByUuid = getConversationByUuidSelector(state);
const currentConversation = conversationSelector(selectedConversationId);
@ -260,7 +260,7 @@ const getContactSpoofingReview = (
case ContactSpoofingType.MultipleGroupMembersWithSameTitle: {
const { memberships } = getGroupMemberships(
currentConversation,
getConversationById
getConversationByUuid
);
const groupNameCollisions = getCollisionsFromMemberships(memberships);