matrix_sdk_test::mocks

Function mock_encryption_state

Source
pub async fn mock_encryption_state(server: &MockServer, is_encrypted: bool)
Expand description

Mount a Mock on the given server to handle the GET /rooms/.../state/m.room.encryption endpoint with an option whether it should return an encryption event or not.