Skip to content

Commit

Permalink
fixup! crypto: update sender data on /keys/query responses
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Sep 4, 2024
1 parent 385e666 commit 2401876
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/matrix-sdk-crypto/src/store/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,12 +648,13 @@ macro_rules! cryptostore_integration_tests {
// Check that there are exactly two results in the batch
assert_eq!(sessions_1_k_batch.len(), 2);

previous_last_session_id = Some(last_session.session_id().to_owned());

// Modify one of the results, to check that that doesn't break iteration
let mut last_session = last_session.clone();
last_session.sender_data = SenderData::unknown();
store.save_inbound_group_sessions(vec![last_session], None).await.unwrap();

previous_last_session_id = Some(last_session.session_id().to_owned());
sessions_1_k.append(&mut sessions_1_k_batch);
}

Expand Down

0 comments on commit 2401876

Please sign in to comment.