Enable pni capability
This commit is contained in:
parent
4ac21d2e82
commit
9206b9984b
2 changed files with 3 additions and 5 deletions
|
@ -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';
|
||||
|
@ -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(
|
||||
|
|
|
@ -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';
|
||||
|
@ -2254,7 +2253,7 @@ export function initialize({
|
|||
registrationId,
|
||||
pniRegistrationId,
|
||||
capabilities: {
|
||||
pni: isPnpEnabled(),
|
||||
pni: true,
|
||||
},
|
||||
unidentifiedAccessKey: Bytes.toBase64(accessKey),
|
||||
},
|
||||
|
@ -2307,7 +2306,7 @@ export function initialize({
|
|||
registrationId,
|
||||
pniRegistrationId,
|
||||
capabilities: {
|
||||
pni: isPnpEnabled(),
|
||||
pni: true,
|
||||
},
|
||||
},
|
||||
aciSignedPreKey: serializeSignedPreKey(aciSignedPreKey),
|
||||
|
|
Loading…
Add table
Reference in a new issue