From ff786c0094ac4f40dede13f56b5fda2590f595f5 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 11 Oct 2022 14:16:37 +0100 Subject: [PATCH] Update the event ordering --- syncapi/storage/shared/storage_consumer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncapi/storage/shared/storage_consumer.go b/syncapi/storage/shared/storage_consumer.go index 9b886c876..e8f9c4946 100644 --- a/syncapi/storage/shared/storage_consumer.go +++ b/syncapi/storage/shared/storage_consumer.go @@ -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 })