client: Fix the search response format.

This commit is contained in:
Damir Jelić 2019-06-10 15:53:19 +02:00
parent 71e672a431
commit 8927bb0c90

View File

@ -644,7 +644,13 @@ class PanClient(AsyncClient):
result_dict["results"].append(event_dict)
result_dict["count"] = len(result_dict["results"])
result_dict["highlight"] = []
result_dict["state"] = state_cache
result_dict["highlights"] = []
return result_dict
if include_state:
result_dict["state"] = state_cache
return {
"search_categories": {
"room_events": result_dict
}
}