Use untagged pnis in storage service

This commit is contained in:
Fedor Indutny 2023-09-28 01:14:55 +02:00 committed by GitHub
parent 283ef57779
commit eb7942dd1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 530 additions and 62 deletions

View file

@ -9,6 +9,7 @@ import * as durations from '../../util/durations';
import { Bootstrap } from '../bootstrap';
import type { App } from '../bootstrap';
import { ReceiptType } from '../../types/Receipt';
import { toUntaggedPni } from '../../types/ServiceId';
export const debug = createDebug('mock:test:challenge:receipts');
@ -49,7 +50,7 @@ describe('challenge/receipts', function challengeReceiptsTest() {
whitelisted: true,
serviceE164: contact.device.number,
identityKey: contact.getPublicKey(ServiceIdKind.PNI).serialize(),
pni: contact.device.getServiceIdByKind(ServiceIdKind.PNI),
pni: toUntaggedPni(contact.device.pni),
givenName: 'Jamie',
},
ServiceIdKind.PNI