0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-06-09 16:08:55 +02:00

Always resolve state in QueryStateAfterEvents

This commit is contained in:
Neil Alexander 2022-09-13 09:37:38 +01:00
parent c366ccdfca
commit 3e55856254
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -106,7 +106,7 @@ func (r *Queryer) QueryStateAfterEvents(
return err
}
if len(request.PrevEventIDs) > 1 && len(request.StateToFetch) == 0 {
if len(request.PrevEventIDs) > 1 {
var authEventIDs []string
for _, e := range stateEvents {
authEventIDs = append(authEventIDs, e.AuthEventIDs()...)