Skip to content

Commit

Permalink
Enable pni capability
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny-signal committed Oct 31, 2023
1 parent 4ac21d2 commit 9206b99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions ts/background.ts
Expand Up @@ -38,7 +38,6 @@ import { isWindowDragElement } from './util/isWindowDragElement';
import { assertDev, strictAssert } from './util/assert';
import { filter } from './util/iterables';
import { isNotNil } from './util/isNotNil';
import { isPnpEnabled } from './util/isPnpEnabled';
import { setAppLoadingScreenMessage } from './setAppLoadingScreenMessage';
import { IdleDetector } from './IdleDetector';
import { expiringMessagesDeletionService } from './services/expiringMessagesDeletion';
Expand Down Expand Up @@ -1787,7 +1786,7 @@ export async function startApp(): Promise<void> {
// Note: we always have to register our capabilities all at once, so we do this
// after connect on every startup
await server.registerCapabilities({
pni: isPnpEnabled(),
pni: true,
});
} catch (error) {
log.error(
Expand Down
5 changes: 2 additions & 3 deletions ts/textsecure/WebAPI.ts
Expand Up @@ -29,7 +29,6 @@ import {
import { formatAcceptLanguageHeader } from '../util/userLanguages';
import { toWebSafeBase64, fromWebSafeBase64 } from '../util/webSafeBase64';
import { getBasicAuth } from '../util/getBasicAuth';
import { isPnpEnabled } from '../util/isPnpEnabled';
import { createHTTPSAgent } from '../util/createHTTPSAgent';
import { createProxyAgent } from '../util/createProxyAgent';
import type { SocketStatus } from '../types/SocketStatus';
Expand Down Expand Up @@ -2254,7 +2253,7 @@ export function initialize({
registrationId,
pniRegistrationId,
capabilities: {
pni: isPnpEnabled(),
pni: true,
},
unidentifiedAccessKey: Bytes.toBase64(accessKey),
},
Expand Down Expand Up @@ -2307,7 +2306,7 @@ export function initialize({
registrationId,
pniRegistrationId,
capabilities: {
pni: isPnpEnabled(),
pni: true,
},
},
aciSignedPreKey: serializeSignedPreKey(aciSignedPreKey),
Expand Down

0 comments on commit 9206b99

Please sign in to comment.