Add "pni" capability in staging

This commit is contained in:
Fedor Indutny 2022-12-20 12:29:17 -08:00 committed by GitHub
parent d8ea9856ec
commit 57eed10a38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View file

@ -27,6 +27,7 @@ import { getStreamWithTimeout } from '../util/getStreamWithTimeout';
import { formatAcceptLanguageHeader } from '../util/userLanguages';
import { toWebSafeBase64 } from '../util/webSafeBase64';
import { getBasicAuth } from '../util/getBasicAuth';
import { isPnpEnabled } from '../util/isPnpEnabled';
import type { SocketStatus } from '../types/SocketStatus';
import { toLogFormat } from '../types/errors';
import { isPackIdValid, redactPackId } from '../types/Stickers';
@ -612,6 +613,7 @@ export type CapabilitiesType = {
senderKey: boolean;
changeNumber: boolean;
stories: boolean;
pni: boolean;
};
export type CapabilitiesUploadType = {
announcementGroup: true;
@ -620,6 +622,9 @@ export type CapabilitiesUploadType = {
senderKey: true;
changeNumber: true;
stories: true;
// true in staging, false in production
pni: boolean;
};
type StickerPackManifestType = Uint8Array;
@ -1857,6 +1862,7 @@ export function initialize({
senderKey: true,
changeNumber: true,
stories: true,
pni: isPnpEnabled(),
};
const jsonData = {