Flatten the /sync response to remove the event_map

This commit is contained in:
Richard van der Hoff 2015-11-12 10:33:19 +00:00
parent f0ee1d515b
commit 3c3fc6b268
2 changed files with 14 additions and 24 deletions

View file

@ -129,10 +129,9 @@ def format_event_for_client_v2(d):
return d
def format_event_for_client_v2_without_event_id(d):
def format_event_for_client_v2_without_room_id(d):
d = format_event_for_client_v2(d)
d.pop("room_id", None)
d.pop("event_id", None)
return d