Skip to content
Snippets Groups Projects
Commit 1222289c authored by Jean-Baptiste Petit's avatar Jean-Baptiste Petit
Browse files

get_state_events_for_key_route return the content of the requested event instead of the all event.

parent 0a1c4f36
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment