Skip to content

Commit ed08c1c

Browse files
dkasakrichvdh
authored andcommitted
Tweak PDU diagram demonstrating prev_events. (#3340)
This tweaks the DAG to be simpler, with two linear event chains E4 -> E3 -> E2 -> E1 and E6 -> E5 -> E2 -> E1. The extremities of the DAG are now the first and only point in the DAG where multiple event parents occur. Since the point of the diagram is to demonstrate this very situation, it's better didactically if there is only one such situation in the diagram.
1 parent d9dd37d commit ed08c1c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Tweak the example PDU diagram to better demonstrate situations with multiple `prev_events`.

content/server-server-api.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,15 +333,16 @@ after all other known events.
333333

334334
For example, consider a room whose events form the DAG shown below. A
335335
server creating a new event in this room should populate the new event's
336-
`prev_events` field with `E4` and `E5`, since neither event yet has a
337-
child:
336+
`prev_events` field with both `E4` and `E6`, since neither event yet has
337+
a child:
338338

339339
E1
340340
^
341341
|
342-
+-> E2 <-+
343-
| |
344-
E3 E5
342+
E2 <--- E5
343+
^ ^
344+
| |
345+
E3 E6
345346
^
346347
|
347348
E4

0 commit comments

Comments
 (0)