mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-02-25 05:53:09 -06:00
Comment on why we want the state after the previous events
This commit is contained in:
parent
2763649fed
commit
ece677c87a
|
|
@ -25,6 +25,7 @@ func calculateAndStoreStateBeforeEvent(
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The state before this event will be the state after the events that came before it.
|
||||||
return calculateAndStoreStateAfterEvents(db, roomNID, prevStates)
|
return calculateAndStoreStateAfterEvents(db, roomNID, prevStates)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue