claimKeyPackages

abstract suspend fun claimKeyPackages(userIds: List<<Error class: unknown class>>, cipherSuite: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>, KeyPackageClaimResult>

Claims the key packages for the specified user IDs.

Attempts to fetch key packages from self user will be skipped. Attempts to fetch only from self user will result in success even though no key packages were actually claimed.

Return

An Either instance representing the result of the operation. If the operation is successful, it will be Either.Right with a KeyPackageClaimResult object containing the successfully fetched key packages, the user IDs that genuinely have no key packages (KeyPackageClaimResult.usersWithoutKeyPackages), and the user IDs whose backend was unreachable during claiming (KeyPackageClaimResult.usersWithUnreachableBackend). If the operation fails entirely (e.g. self client ID unavailable), it will be Either.Left with a CoreFailure.

Parameters

userIds

The list of user IDs for which to claim key packages.