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

@ -12,7 +12,7 @@ import {
import createDebug from 'debug';
import * as durations from '../../util/durations';
import { generatePni } from '../../types/ServiceId';
import { generatePni, toUntaggedPni } from '../../types/ServiceId';
import { Bootstrap } from '../bootstrap';
import type { App } from '../bootstrap';
@ -92,7 +92,10 @@ describe('pnp/PNI DecryptionError unlink', function needsName() {
pniChangeNumber,
},
},
{ timestamp: bootstrap.getTimestamp(), updatedPni: generatePni() }
{
timestamp: bootstrap.getTimestamp(),
updatedPni: toUntaggedPni(generatePni()),
}
)
);
sendPromises.push(
@ -103,7 +106,10 @@ describe('pnp/PNI DecryptionError unlink', function needsName() {
pniChangeNumber,
},
},
{ timestamp: bootstrap.getTimestamp(), updatedPni: desktop.pni }
{
timestamp: bootstrap.getTimestamp(),
updatedPni: toUntaggedPni(desktop.pni),
}
)
);