mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 13:04:10 +01:00
Clarify conflicted state set?
This commit is contained in:
parent
8c4c09feb0
commit
8ab06340f0
|
|
@ -31,13 +31,15 @@ the `membership` is `leave` or `ban` and the `sender` does not match the
|
||||||
might remove someone's ability to do something in the room.
|
might remove someone's ability to do something in the room.
|
||||||
|
|
||||||
**Unconflicted state map and conflicted state set.**
|
**Unconflicted state map and conflicted state set.**
|
||||||
The key-value pairs across all state maps *S<sub>i</sub>* can be divided into
|
The keys of the state maps *S<sub>i</sub>* are 2-tuples of strings of the form
|
||||||
two collections. If a given key *K* is present in every *S<sub>i</sub>* with the
|
*K* = `(event_type, state_key)`. The values *V* are state events.
|
||||||
same value *V* in each state map, then the pair (*K*, *V*) belongs to the
|
The key-value pairs (*K*, *V*) across all state maps *S<sub>i</sub>* can be
|
||||||
*unconflicted state map*. Otherwise (*K*, *V*) belongs to the
|
divided into two collections.
|
||||||
*conflicted state set*.
|
If a given key *K* is present in every *S<sub>i</sub>* with the same value *V*
|
||||||
|
in each state map, then the pair (*K*, *V*) belongs to the *unconflicted state map*.
|
||||||
|
Otherwise (*K*, *V*) belongs to the *conflicted state set*.
|
||||||
|
|
||||||
Note that the unconflicted state map only has one event per `(event_type, state_key)`,
|
Note that the unconflicted state map only has one event for each key *K*,
|
||||||
whereas the conflicted state set may associate multiple events to the same key.
|
whereas the conflicted state set may associate multiple events to the same key.
|
||||||
|
|
||||||
**Auth chain.**
|
**Auth chain.**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue