Introduce new Profile Fetch service, with centralized queueing

This commit is contained in:
Scott Nonnenberg 2022-07-13 17:46:46 -07:00 committed by GitHub
parent 535b466b43
commit bfc56dd175
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 821 additions and 548 deletions

View file

@ -35,7 +35,7 @@ export function isConversationAccepted(
const { sentMessageCount } = conversationAttrs;
const hasSentMessages = sentMessageCount > 0;
const hasSentMessages = (sentMessageCount || 0) > 0;
const hasMessagesBeforeMessageRequests =
(conversationAttrs.messageCountBeforeMessageRequests || 0) > 0;
const hasNoMessages = (conversationAttrs.messageCount || 0) === 0;
@ -47,7 +47,7 @@ export function isConversationAccepted(
const isEmptyWhitelistedGroup =
hasNoMessages &&
!isDirectConversation(conversationAttrs) &&
conversationAttrs.profileSharing;
Boolean(conversationAttrs.profileSharing);
return (
isFromOrAddedByTrustedContact(conversationAttrs) ||