Function matrix_sdk_test::mocks::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.