0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-02 18:59:04 +02: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:
Richard van der Hoff 2018-02-13 13:04:41 +00:00
parent 4d09366656
commit 8fd1a32456
2 changed files with 2 additions and 4 deletions

View file

@ -23,5 +23,5 @@ To delete local events as well, set ``delete_local_events`` in the body:
.. code:: json
{
"delete_local_events": True,
"delete_local_events": true
}

View file

@ -131,9 +131,7 @@ class PurgeHistoryRestServlet(ClientV1RestServlet):
body = parse_json_object_from_request(request, allow_empty_body=True)
delete_local_events = bool(
body.get("delete_local_history", False)
)
delete_local_events = bool(body.get("delete_local_events", False))
yield self.handlers.message_handler.purge_history(
room_id, event_id,