mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
In integration tests, provide all contacts a prekey
This commit is contained in:
committed by
Josh Perez
parent
83abcd4cca
commit
1335bb728a
@@ -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<PrimaryDevice> {
|
||||
return [...this.contacts, ...this.contactsWithoutProfileKey];
|
||||
}
|
||||
|
||||
//
|
||||
// Private
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user