WebAPI: Ensure we report the right capabilities during link
This commit is contained in:
parent
b23efedba9
commit
97229e2e65
1 changed files with 10 additions and 2 deletions
|
@ -2566,13 +2566,17 @@ export function initialize({
|
|||
throw new Error('createAccount: invalid code');
|
||||
}
|
||||
|
||||
const capabilities: CapabilitiesUploadType = {
|
||||
deleteSync: true,
|
||||
};
|
||||
|
||||
const jsonData = {
|
||||
sessionId: session.id,
|
||||
accountAttributes: {
|
||||
fetchesMessages: true,
|
||||
registrationId,
|
||||
pniRegistrationId,
|
||||
capabilities: {},
|
||||
capabilities,
|
||||
unidentifiedAccessKey: Bytes.toBase64(accessKey),
|
||||
},
|
||||
requireAtomic: true,
|
||||
|
@ -2616,6 +2620,10 @@ export function initialize({
|
|||
aciPqLastResortPreKey,
|
||||
pniPqLastResortPreKey,
|
||||
}: LinkDeviceOptionsType) {
|
||||
const capabilities: CapabilitiesUploadType = {
|
||||
deleteSync: true,
|
||||
};
|
||||
|
||||
const jsonData = {
|
||||
verificationCode,
|
||||
accountAttributes: {
|
||||
|
@ -2623,7 +2631,7 @@ export function initialize({
|
|||
name: encryptedDeviceName,
|
||||
registrationId,
|
||||
pniRegistrationId,
|
||||
capabilities: {},
|
||||
capabilities,
|
||||
},
|
||||
aciSignedPreKey: serializeSignedPreKey(aciSignedPreKey),
|
||||
pniSignedPreKey: serializeSignedPreKey(pniSignedPreKey),
|
||||
|
|
Loading…
Reference in a new issue