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

@ -198,14 +198,9 @@ export async function sendContentMessageToGroup({
'sendContentMessageToGroup: textsecure.messaging not available!'
);
const ourConversationId =
window.ConversationController.getOurConversationIdOrThrow();
const ourConversation = window.ConversationController.get(ourConversationId);
if (
isEnabled('desktop.sendSenderKey3') &&
isEnabled('desktop.senderKey.send') &&
ourConversation?.get('capabilities')?.senderKey &&
sendTarget.isValid()
) {
try {
@ -1148,11 +1143,6 @@ function isValidSenderKeyRecipient(
return false;
}
const capabilities = memberConversation.get('capabilities');
if (!capabilities?.senderKey) {
return false;
}
if (!getAccessKey(memberConversation.attributes, { story })) {
return false;
}