Introduce new Profile Fetch service, with centralized queueing
This commit is contained in:
parent
535b466b43
commit
bfc56dd175
9 changed files with 821 additions and 548 deletions
|
@ -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) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue