Remove obsolete capabilities, improve routine profile fetch

This commit is contained in:
Scott Nonnenberg 2023-08-07 16:12:57 -07:00 committed by GitHub
parent 4ba3a7856c
commit 3299b8f323
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 147 additions and 212 deletions

View file

@ -15,7 +15,6 @@ export function getRecipients(
{
includePendingMembers,
extraConversationsForSend,
isStoryReply = false,
}: {
includePendingMembers?: boolean;
extraConversationsForSend?: ReadonlyArray<string>;
@ -27,14 +26,10 @@ export function getRecipients(
return [getSendTarget(conversationAttributes)!];
}
let members = getConversationMembers(conversationAttributes, {
const members = getConversationMembers(conversationAttributes, {
includePendingMembers,
});
if (isStoryReply) {
members = members.filter(({ capabilities }) => capabilities?.stories);
}
// There are cases where we need to send to someone we just removed from the group, to
// let them know that we removed them. In that case, we need to send to more than
// are currently in the group.