mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2024-11-27 11:45:23 +00:00
get_state_events_for_key_route return the content of the requested event instead of the all event.
This commit is contained in:
parent
0a1c4f3649
commit
1222289c75
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue