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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 59 additions and 69 deletions

View file

@ -790,13 +790,13 @@ export function initialize({
});
}
async function getSenderCertificate(withUuid = false) {
async function getSenderCertificate() {
return _ajax({
call: 'deliveryCert',
httpType: 'GET',
responseType: 'json',
validateResponse: { certificate: 'string' },
urlParameters: withUuid ? '?includeUuid=true' : undefined,
urlParameters: '?includeUuid=true',
});
}
@ -917,9 +917,11 @@ export function initialize({
) {
const { accessKey } = options;
const jsonData: any = {
capabilities: {
uuid: true,
},
// tslint:disable-next-line: no-suspicious-comment
// TODO: uncomment this once we want to start registering UUID support
// capabilities: {
// uuid: true,
// },
fetchesMessages: true,
name: deviceName ? deviceName : undefined,
registrationId,