mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-25 17:49:58 -04:00
When we add a batch of inbound group sessions to the store, if they came from a backup, we need to record which backup version they came from. `CryptoStore::save_changes` doesn't give us an easy way to set the backup version (we could add it to the `Changes` struct, but ugh). So, we add a new method `save_inbound_group_sessions` which takes the backup version as a separate param. This works fine, because whenever we import sessions there are no other changes to store. The new method isn't used outside of tests yet -- that comes in a follow-up commit.