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 { assertDev, strictAssert } from './util/assert';
|
||||||
import { filter } from './util/iterables';
|
import { filter } from './util/iterables';
|
||||||
import { isNotNil } from './util/isNotNil';
|
import { isNotNil } from './util/isNotNil';
|
||||||
import { isPnpEnabled } from './util/isPnpEnabled';
|
|
||||||
import { setAppLoadingScreenMessage } from './setAppLoadingScreenMessage';
|
import { setAppLoadingScreenMessage } from './setAppLoadingScreenMessage';
|
||||||
import { IdleDetector } from './IdleDetector';
|
import { IdleDetector } from './IdleDetector';
|
||||||
import { expiringMessagesDeletionService } from './services/expiringMessagesDeletion';
|
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
|
// Note: we always have to register our capabilities all at once, so we do this
|
||||||
// after connect on every startup
|
// after connect on every startup
|
||||||
await server.registerCapabilities({
|
await server.registerCapabilities({
|
||||||
pni: isPnpEnabled(),
|
pni: true,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log.error(
|
log.error(
|
||||||
|
|
|
@ -29,7 +29,6 @@ import {
|
||||||
import { formatAcceptLanguageHeader } from '../util/userLanguages';
|
import { formatAcceptLanguageHeader } from '../util/userLanguages';
|
||||||
import { toWebSafeBase64, fromWebSafeBase64 } from '../util/webSafeBase64';
|
import { toWebSafeBase64, fromWebSafeBase64 } from '../util/webSafeBase64';
|
||||||
import { getBasicAuth } from '../util/getBasicAuth';
|
import { getBasicAuth } from '../util/getBasicAuth';
|
||||||
import { isPnpEnabled } from '../util/isPnpEnabled';
|
|
||||||
import { createHTTPSAgent } from '../util/createHTTPSAgent';
|
import { createHTTPSAgent } from '../util/createHTTPSAgent';
|
||||||
import { createProxyAgent } from '../util/createProxyAgent';
|
import { createProxyAgent } from '../util/createProxyAgent';
|
||||||
import type { SocketStatus } from '../types/SocketStatus';
|
import type { SocketStatus } from '../types/SocketStatus';
|
||||||
|
@ -2254,7 +2253,7 @@ export function initialize({
|
||||||
registrationId,
|
registrationId,
|
||||||
pniRegistrationId,
|
pniRegistrationId,
|
||||||
capabilities: {
|
capabilities: {
|
||||||
pni: isPnpEnabled(),
|
pni: true,
|
||||||
},
|
},
|
||||||
unidentifiedAccessKey: Bytes.toBase64(accessKey),
|
unidentifiedAccessKey: Bytes.toBase64(accessKey),
|
||||||
},
|
},
|
||||||
|
@ -2307,7 +2306,7 @@ export function initialize({
|
||||||
registrationId,
|
registrationId,
|
||||||
pniRegistrationId,
|
pniRegistrationId,
|
||||||
capabilities: {
|
capabilities: {
|
||||||
pni: isPnpEnabled(),
|
pni: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
aciSignedPreKey: serializeSignedPreKey(aciSignedPreKey),
|
aciSignedPreKey: serializeSignedPreKey(aciSignedPreKey),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue