Remove unused pre-PNP code

This commit is contained in:
Fedor Indutny 2024-02-16 11:49:48 -08:00 committed by GitHub
parent 0ac65cb22b
commit 16dcf31906
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 7 additions and 70 deletions

View file

@ -636,12 +636,8 @@ export type WebAPIConnectType = {
connect: (options: WebAPIConnectOptionsType) => WebAPIType;
};
export type CapabilitiesType = {
pni: boolean;
};
export type CapabilitiesUploadType = {
pni: true;
};
export type CapabilitiesType = Record<string, never>;
export type CapabilitiesUploadType = Record<string, never>;
type StickerPackManifestType = Uint8Array;
@ -2262,9 +2258,7 @@ export function initialize({
fetchesMessages: true,
registrationId,
pniRegistrationId,
capabilities: {
pni: true,
},
capabilities: {},
unidentifiedAccessKey: Bytes.toBase64(accessKey),
},
requireAtomic: true,
@ -2315,9 +2309,7 @@ export function initialize({
name: encryptedDeviceName,
registrationId,
pniRegistrationId,
capabilities: {
pni: true,
},
capabilities: {},
},
aciSignedPreKey: serializeSignedPreKey(aciSignedPreKey),
pniSignedPreKey: serializeSignedPreKey(pniSignedPreKey),