Accept profile keys for unknown members in groups
This commit is contained in:
parent
c892febdbc
commit
b6f1b8b577
4 changed files with 57 additions and 32 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue