Accept profile keys for unknown members in groups

This commit is contained in:
trevor-signal 2023-10-13 21:14:46 -04:00 committed by GitHub
parent c892febdbc
commit b6f1b8b577
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 57 additions and 32 deletions

View file

@ -22,18 +22,13 @@ describe('unknown contacts', function (this: Mocha.Suite) {
let unknownContact: PrimaryDevice;
beforeEach(async () => {
bootstrap = new Bootstrap();
bootstrap = new Bootstrap({ contactCount: 1, unknownContactCount: 1 });
await bootstrap.init();
app = await bootstrap.link();
page = await app.getWindow();
const { server, desktop } = bootstrap;
unknownContact = await server.createPrimaryDevice({
profileName: 'Hugh Ameye',
});
const ourKey = await desktop.popSingleUseKey();
await unknownContact.addSingleUseKey(desktop, ourKey);
const { unknownContacts } = bootstrap;
[unknownContact] = unknownContacts;
});
afterEach(async function (this: Mocha.Context) {