mirror of
https://github.com/twentyhq/twenty.git
synced 2024-09-11 15:35:36 +03:00
Fix contactCreation ignoring connectedAccount mainHandle
This commit is contained in:
parent
5638af4385
commit
3e453054b7
@ -1,5 +1,5 @@
|
||||
import { useMemo } from 'react';
|
||||
import { useQuery } from '@apollo/client';
|
||||
import { useMemo } from 'react';
|
||||
|
||||
import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem';
|
||||
import { ObjectMetadataItemIdentifier } from '@/object-metadata/types/ObjectMetadataItemIdentifier';
|
||||
|
@ -82,9 +82,9 @@ export class MessagingSaveMessagesAndEnqueueContactCreationService {
|
||||
const isMessageSentByConnectedAccount =
|
||||
emailAliases.includes(fromHandle);
|
||||
|
||||
const isParticipantConnectedAccount = emailAliases.includes(
|
||||
participant.handle,
|
||||
);
|
||||
const isParticipantConnectedAccount =
|
||||
emailAliases.includes(participant.handle) ||
|
||||
participant.handle === connectedAccount.handle;
|
||||
|
||||
const isExcludedByNonProfessionalEmails =
|
||||
messageChannel.excludeNonProfessionalEmails &&
|
||||
|
Loading…
Reference in New Issue
Block a user