Skip to content

Commit 9df8b6e

Browse files
committed
Split out meta MSC2716 events into their own fields
Incorporate feedback from: - #2716 (comment) - #2716 (comment)
1 parent a4c474e commit 9df8b6e

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

proposals/2716-batch-send-historical-messages.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,19 +165,25 @@ Request body:
165165
Request response:
166166
```jsonc
167167
{
168-
"state_events": [
169-
// list of state event ID's we inserted...
168+
// List of state event ID's we inserted
169+
"state_event_ids": [
170+
// member state event ID
170171
],
171-
// List of historical event ID's we inserted which includes the
172-
// auto-generated insertion and chunk events...
173-
"events": [
174-
// insertion event ID for chunk
172+
// List of historical event ID's we inserted
173+
"event_ids": [
175174
// historical message1 event ID
176175
// historical message2 event ID
177-
// chunk event ID
178-
// base insertion event ID
179176
],
180177
"next_chunk_id": "random-unique-string",
178+
"insertion_event_id": "$X9RSsCPKu5gTVIJCoDe6HeCmsrp6kD31zXjMRfBCADE",
179+
"chunk_event_id": "$kHspK8a5kQN2xkTJMDWL-BbmeYVYAloQAA9QSLOsOZ4",
180+
// When `?chunk_id` isn't provided, the homeserver automatically creates an
181+
// insertion event as a starting place to hang the history off of. This automatic
182+
// insertion event ID is returned in this field.
183+
//
184+
// When `?chunk_id` is provided, this field is not present because we can hang
185+
// the history off the insertione event specified associated by the chunk ID.
186+
"base_insertion_event_id": "$pmmaTamxhcyLrrOKSrJf3c1zNmfvsE5SGpFpgE_UvN0"
181187
}
182188
```
183189

0 commit comments

Comments
 (0)