diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-09-13 09:37:38 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-09-13 09:37:38 +0100 |
commit | 3e55856254f6bc918f5075d7adb85d53da92c7c8 (patch) | |
tree | 7a0b1f2cb207d85e5f16ae0529f09ff5d8331c86 /roomserver/internal/query/query.go | |
parent | c366ccdfcaf1ea820bef4744fda90aff4db1c67d (diff) |
Always resolve state in `QueryStateAfterEvents`
Diffstat (limited to 'roomserver/internal/query/query.go')
-rw-r--r-- | roomserver/internal/query/query.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/internal/query/query.go b/roomserver/internal/query/query.go index 6dce2bc3..d08c5c49 100644 --- a/roomserver/internal/query/query.go +++ b/roomserver/internal/query/query.go @@ -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()...) |