pub async fn claim_local_keys(
database: &mut DefaultDb,
requested_keys: BTreeMap<OwnedUserId, BTreeMap<OwnedDeviceId, OneTimeKeyAlgorithm>>,
) -> Result<RawOneTimeKeys, InternalServerError>Expand description
Fetches every requested one-time keys from the database.
If found one-time keys will be used, and otherwise, fallback keys. These keys will then be converted to raw json values so that they can be used by their calling APIs.