From e0b153930cc525b5c12a31055fba1ec63e230043 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Thu, 19 Dec 2024 19:57:52 +0100 Subject: [PATCH] Revert "Only pull state we actually need" This reverts commit 44c52a24824b14f62a403b20fbacdc5c961306f5. --- roomserver/storage/shared/storage.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/roomserver/storage/shared/storage.go b/roomserver/storage/shared/storage.go index 66a83f07..a4eb0eb9 100644 --- a/roomserver/storage/shared/storage.go +++ b/roomserver/storage/shared/storage.go @@ -1487,9 +1487,7 @@ func (d *Database) GetBulkStateContent(ctx context.Context, roomIDs []string, tu if roomInfo == nil || roomInfo.IsStub() { continue } - // We don't need a querier here, as we don't actually do state resolution - res := state.NewStateResolution(d, roomInfo, nil) - entries, err2 := res.LoadStateAtSnapshotForStringTuples(ctx, roomInfo.StateSnapshotNID(), tuples) + entries, err2 := d.loadStateAtSnapshot(ctx, roomInfo.StateSnapshotNID()) if err2 != nil { return nil, fmt.Errorf("GetBulkStateContent: failed to load state for room %s : %w", roomID, err2) }