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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue