Partially revert "Sender Key: Prepare for testing in beta"
Partial revert of commit ab5a12fded
This commit is contained in:
parent
674ea824c2
commit
3bbe859452
4 changed files with 11 additions and 6 deletions
|
@ -19,6 +19,7 @@ export type ConfigKeyType =
|
|||
| 'desktop.screensharing2'
|
||||
| 'desktop.senderKey.send'
|
||||
| 'desktop.senderKey.retry'
|
||||
| 'desktop.sendSenderKey2'
|
||||
| 'desktop.storage'
|
||||
| 'desktop.storageWrite3'
|
||||
| 'desktop.worksAtSignal'
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue