Skip to main content

complete_one_time_key_counts

Function complete_one_time_key_counts 

Source
fn complete_one_time_key_counts(
    counts: BTreeMap<OneTimeKeyAlgorithm, UInt>,
) -> BTreeMap<OneTimeKeyAlgorithm, UInt>
Expand description

Keep zero-count algorithms visible to clients after an OTK pool is drained.

An empty map is omitted from /sync by ruma. Some clients interpret an omitted count as “unknown” and therefore do not replenish a previously-uploaded Olm account. Only signed_curve25519 is seeded, matching Synapse; clients do not maintain unsigned curve25519 keys.