1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00
This commit is contained in:
Brandon Treston
2025-06-26 11:11:07 -04:00
committed by GitHub
parent 963688b17e
commit 4d0ad3310e

View File

@@ -337,10 +337,9 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
if (
await firstValueFrom(this.configService.getFeatureFlag$(FeatureFlag.CreateDefaultLocation))
) {
this.organizationUserService
.confirmUser(this.organization, user, publicKey)
.pipe(takeUntilDestroyed())
.subscribe();
await firstValueFrom(
this.organizationUserService.confirmUser(this.organization, user, publicKey),
);
} else {
const orgKey = await this.keyService.getOrgKey(this.organization.id);
const key = await this.encryptService.encapsulateKeyUnsigned(orgKey, publicKey);