Merge pull request 'get_state_events_for_key_route returns the content of the requested event instead of the all event.' (#95) from jbbouille/conduit:fix-get_state_events_for_key_route-returning-all-event into master

next
Timo Kösters 2020-06-03 10:27:13 +02:00
commit 720d48bd67
1 changed files with 1 additions and 1 deletions

View File

@ -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 {