From 1222289c7504b8d5fd183f05211ae98b2cca6a73 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Petit Date: Wed, 3 Jun 2020 09:30:34 +0200 Subject: [PATCH] get_state_events_for_key_route return the content of the requested event instead of the all event. --- src/client_server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client_server.rs b/src/client_server.rs index e56a7c5..2cb7a5f 100644 --- a/src/client_server.rs +++ b/src/client_server.rs @@ -1895,7 +1895,7 @@ pub fn get_state_events_for_key_route( .get(&(body.event_type.clone(), body.state_key.clone())) { MatrixResult(Ok(get_state_events_for_key::Response { - content: serde_json::value::to_raw_value(event).unwrap(), + content: serde_json::value::to_raw_value(&event.content).unwrap(), })) } else { MatrixResult(Err(Error {