@ -66,18 +66,18 @@ This is fixed in the state resolution algorithm introduced in room
version 2.
version 2.
{{% /boxes/warning %}}
{{% /boxes/warning %}}
The room state *S *′ (*E*) after an event *E* is defined in terms of the
The room state *S ′ *(*E*) after an event *E* is defined in terms of the
room state *S* (*E*) before *E* , and depends on whether *E* is a state
room state *S* (*E*) before *E* , and depends on whether *E* is a state
event or a message event:
event or a message event:
- If *E* is a message event, then *S * ′ (* E* ) = *S* (* E* ).
- If *E* is a message event, then *S ′ (E)* = *S(E)* .
- If *E* is a state event, then *S *′ (*E*) is *S* (*E*) , except that its
- If *E* is a state event, then *S ′ (E)* is *S(E)* , except that its
entry corresponding to *E* 's `event_type` and `state_key` is
entry corresponding to the `event_type` and `state_key` of *E* is
replaced by *E* 's `event_id` .
replaced by the `event_id` of *E* .
The room state *S *(*E*) before *E* is the *resolution* of the set of
The room state *S (E)* before *E* is the *resolution* of the set of
states {*S*′ (*E*′ ), *S*′ (*E*″), …} consisting of the states after each
states {*S′ (E′ )*, *S′ (E″)*, …} after the `prev_events` {*E′ *, *E″*, …}.
of *E* 's `prev_event` s {*E*′ , *E*″, …} .
of *E* .
The *resolution* of a set of states is defined as follows. The resolved
The *resolution* of a set of states is defined as follows. The resolved
state is built up in a number of passes; here we use *R* to refer to the
state is built up in a number of passes; here we use *R* to refer to the