Sender Key: Hardcode senderKey to true, during link and thereafter

This commit is contained in:
Scott Nonnenberg 2021-08-10 17:41:27 -07:00 committed by GitHub
parent 0d3e3851e2
commit 81f06e2404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 10 deletions

View File

@ -2349,9 +2349,7 @@ export async function startApp(): Promise<void> {
announcementGroup: true,
'gv2-3': true,
'gv1-migration': true,
senderKey: window.Signal.RemoteConfig.isEnabled(
'desktop.sendSenderKey2'
),
senderKey: true,
});
} catch (error) {
window.log.error(

View File

@ -1752,8 +1752,9 @@ export default class MessageReceiver
}
} catch (error) {
window.log.error(
`maybeUpdateTimestamp/${timestamp}: Failed to process sender key ` +
`distribution message: ${Errors.toLogFormat(error)}`
`maybeUpdateTimestamp/${timestamp}: Failed to process message: ${Errors.toLogFormat(
error
)}`
);
}

View File

@ -764,10 +764,10 @@ export type CapabilitiesType = {
senderKey: boolean;
};
export type CapabilitiesUploadType = {
announcementGroup: boolean;
'gv2-3': boolean;
'gv1-migration': boolean;
senderKey: boolean;
announcementGroup: true;
'gv2-3': true;
'gv1-migration': true;
senderKey: true;
};
type StickerPackManifestType = any;
@ -1494,7 +1494,7 @@ export function initialize({
announcementGroup: true,
'gv2-3': true,
'gv1-migration': true,
senderKey: false,
senderKey: true,
};
const { accessKey, uuid } = options;