Update sync API defn to reflect SPEC-254 changes

State now corresponds to the start of the timeline, not the end.
pull/164/head
Richard van der Hoff 9 years ago
parent ea364a108b
commit 3f0262081c

@ -119,7 +119,11 @@ paths:
title: State title: State
type: object type: object
description: |- description: |-
The state updates for the room. Updates to the state, between the time indicated by
the ``since`` parameter, and the start of the
``timeline`` (or all state up to the start of the
``timeline``, if ``since`` is not given, or
``full_state`` is true).
allOf: allOf:
- $ref: "definitions/room_event_batch.json" - $ref: "definitions/room_event_batch.json"
timeline: timeline:
@ -193,8 +197,7 @@ paths:
title: State title: State
type: object type: object
description: |- description: |-
The state updates for the room up to the point when The state updates for the room up to the start of the timeline.
the user left.
allOf: allOf:
- $ref: "definitions/room_event_batch.json" - $ref: "definitions/room_event_batch.json"
timeline: timeline:
@ -260,7 +263,6 @@ paths:
"state": { "state": {
"events": [ "events": [
"$66697273743031:example.com", "$66697273743031:example.com",
"$7365636s6r6432:example.com"
] ]
}, },
"timeline": { "timeline": {

Loading…
Cancel
Save