Partially revert "Sender Key: Prepare for testing in beta"

Partial revert of commit ab5a12fded
This commit is contained in:
Scott Nonnenberg authored and GitHub committed 2021-08-04 16:49:05 -07:00
1 parent 674ea824c2
commit 3bbe859452
4 files changed
+11 -6

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ export type ConfigKeyType =
| 'desktop.screensharing2'
| 'desktop.senderKey.send'
| 'desktop.senderKey.retry'
| 'desktop.sendSenderKey2'
| 'desktop.storage'
| 'desktop.storageWrite3'
| 'desktop.worksAtSignal'
+3 -1
View File
@@ -2314,7 +2314,9 @@ export async function startApp(): Promise<void> {
announcementGroup: true,
'gv2-3': true,
'gv1-migration': true,
senderKey: true,
senderKey: window.Signal.RemoteConfig.isEnabled(
'desktop.sendSenderKey2'
),
});
} catch (error) {
window.log.error(
+5 -5
View File
@@ -764,10 +764,10 @@ export type CapabilitiesType = {
senderKey: boolean;
};
export type CapabilitiesUploadType = {
announcementGroup: true;
'gv2-3': true;
'gv1-migration': true;
senderKey: true;
announcementGroup: boolean;
'gv2-3': boolean;
'gv1-migration': boolean;
senderKey: boolean;
};
type StickerPackManifestType = any;
@@ -1494,7 +1494,7 @@ export function initialize({
announcementGroup: true,
'gv2-3': true,
'gv1-migration': true,
senderKey: true,
senderKey: false,
};
const { accessKey, uuid } = options;
+2
View File
@@ -19,6 +19,7 @@ import {
SenderCertificateMode,
SendLogCallbackType,
} from '../textsecure/OutgoingMessage';
import { isEnabled } from '../RemoteConfig';
import { isOlderThan } from './timestamp';
import {
@@ -146,6 +147,7 @@ export async function sendContentMessageToGroup({
const ourConversation = window.ConversationController.get(ourConversationId);
if (
isEnabled('desktop.sendSenderKey2') &&
ourConversation?.get('capabilities')?.senderKey &&
RemoteConfig.isEnabled('desktop.senderKey.send') &&
isGroupV2(conversation.attributes)