mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Fix fetching wrong set of events
This commit is contained in:
parent
796ada7c25
commit
b589db7ff3
|
|
@ -486,7 +486,7 @@ func (r *RoomserverQueryAPI) getAuthChain(
|
||||||
// Check if there's anything left to do
|
// Check if there's anything left to do
|
||||||
for len(eventsToFetch) > 0 {
|
for len(eventsToFetch) > 0 {
|
||||||
// Convert eventIDs to events. First need to fetch NIDs
|
// Convert eventIDs to events. First need to fetch NIDs
|
||||||
nidMap, err := r.DB.EventNIDs(ctx, authEventIDs)
|
nidMap, err := r.DB.EventNIDs(ctx, eventsToFetch)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue