mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
More comments
This commit is contained in:
parent
77e3ff58c2
commit
c7a2af97eb
|
|
@ -56,6 +56,8 @@ func (d *Database) StoreEvent(event gomatrixserverlib.Event) error {
|
|||
}
|
||||
|
||||
eventStateKey := event.StateKey()
|
||||
// Assigned a numeric ID for the state_key if there is one present.
|
||||
// Otherwise set the numeric ID for the state_key to 0.
|
||||
if eventStateKey != nil {
|
||||
if eventStateKeyNID, err = d.assignStateKeyNID(*eventStateKey); err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue