mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-25 00:29:22 -05:00
Fix typos in purge api & doc
* It's supposed to be purge_local_events, not ..._history * Fix the doc to have valid json
This commit is contained in:
parent
4d09366656
commit
8fd1a32456
@ -23,5 +23,5 @@ To delete local events as well, set ``delete_local_events`` in the body:
|
|||||||
.. code:: json
|
.. code:: json
|
||||||
|
|
||||||
{
|
{
|
||||||
"delete_local_events": True,
|
"delete_local_events": true
|
||||||
}
|
}
|
||||||
|
@ -131,9 +131,7 @@ class PurgeHistoryRestServlet(ClientV1RestServlet):
|
|||||||
|
|
||||||
body = parse_json_object_from_request(request, allow_empty_body=True)
|
body = parse_json_object_from_request(request, allow_empty_body=True)
|
||||||
|
|
||||||
delete_local_events = bool(
|
delete_local_events = bool(body.get("delete_local_events", False))
|
||||||
body.get("delete_local_history", False)
|
|
||||||
)
|
|
||||||
|
|
||||||
yield self.handlers.message_handler.purge_history(
|
yield self.handlers.message_handler.purge_history(
|
||||||
room_id, event_id,
|
room_id, event_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user