Remove obsolete capabilities, improve routine profile fetch
This commit is contained in:
parent
4ba3a7856c
commit
3299b8f323
11 changed files with 147 additions and 212 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue