Always use sender certificates including UUID

This commit is contained in:
Ken Powers
2020-05-07 16:51:37 -04:00
committed by GitHub
parent 7a55c68c6c
commit d6d2d242d4
7 changed files with 59 additions and 69 deletions

View File

@@ -1391,14 +1391,10 @@
getSendOptions(options = {}) {
const senderCertificate = storage.get('senderCertificate');
const senderCertificateWithUuid = storage.get(
'senderCertificateWithUuid'
);
const sendMetadata = this.getSendMetadata(options);
return {
senderCertificate,
senderCertificateWithUuid,
sendMetadata,
};
},
@@ -1456,7 +1452,9 @@
window.Signal.Crypto.arrayBufferToBase64(
window.Signal.Crypto.getRandomBytes(16)
),
useUuidSenderCert: uuidCapable,
// Indicates that a client is capable of receiving uuid-only messages.
// Not used yet.
uuidCapable,
};
return {
...(e164 ? { [e164]: info } : {}),
@@ -1475,7 +1473,9 @@
: window.Signal.Crypto.arrayBufferToBase64(
window.Signal.Crypto.getRandomBytes(16)
),
useUuidSenderCert: uuidCapable,
// Indicates that a client is capable of receiving uuid-only messages.
// Not used yet.
uuidCapable,
};
return {