diff --git a/ts/test-mock/bootstrap.ts b/ts/test-mock/bootstrap.ts index 5c9faca4ac..d7ac51beeb 100644 --- a/ts/test-mock/bootstrap.ts +++ b/ts/test-mock/bootstrap.ts @@ -231,7 +231,7 @@ export class Bootstrap { const desktopKey = await this.desktop.popSingleUseKey(); await this.phone.addSingleUseKey(this.desktop, desktopKey); - for (const contact of this.contacts) { + for (const contact of this.allContacts) { for (const uuidKind of [UUIDKind.ACI, UUIDKind.PNI]) { // eslint-disable-next-line no-await-in-loop const contactKey = await this.desktop.popSingleUseKey(uuidKind); @@ -350,6 +350,10 @@ export class Bootstrap { return this.privContactsWithoutProfileKey; } + public get allContacts(): ReadonlyArray { + return [...this.contacts, ...this.contactsWithoutProfileKey]; + } + // // Private //