mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Update the event ordering
This commit is contained in:
parent
9bae393776
commit
ff786c0094
|
|
@ -598,8 +598,8 @@ func (d *Database) UpdateRelations(ctx context.Context, event *gomatrixserverlib
|
||||||
}
|
}
|
||||||
return d.Writer.Do(d.DB, nil, func(txn *sql.Tx) error {
|
return d.Writer.Do(d.DB, nil, func(txn *sql.Tx) error {
|
||||||
_, err := d.Relations.InsertRelation(
|
_, err := d.Relations.InsertRelation(
|
||||||
ctx, txn, event.RoomID(), event.EventID(),
|
ctx, txn, event.RoomID(), content.Relations.EventID,
|
||||||
content.Relations.EventID, content.Relations.RelationType,
|
event.EventID(), content.Relations.RelationType,
|
||||||
)
|
)
|
||||||
return err
|
return err
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue