Update the event ordering

This commit is contained in:
Neil Alexander 2022-10-11 14:16:37 +01:00
parent 9bae393776
commit ff786c0094
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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 {
_, err := d.Relations.InsertRelation(
ctx, txn, event.RoomID(), event.EventID(),
content.Relations.EventID, content.Relations.RelationType,
ctx, txn, event.RoomID(), content.Relations.EventID,
event.EventID(), content.Relations.RelationType,
)
return err
})