diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-10-12 15:56:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 15:56:15 +0100 |
commit | 8001627cfca89e52389d943f7f148a1a86c71715 (patch) | |
tree | cad94d1f6655761b51a453175e67458186f93b68 /roomserver | |
parent | 0804594a614998fd115fb99224183c66af34ecfa (diff) |
Get missing event tweaks (#1514)
* Adjust backfill to send backward extremity with state before other backfilled events, include prev_events with no state amongst missing events
* Not finished refactor
* Fix test
* Remove isInboundTxn
* Remove debug logging
Diffstat (limited to 'roomserver')
-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 73660421..81051150 100644 --- a/roomserver/internal/query/query.go +++ b/roomserver/internal/query/query.go @@ -122,7 +122,7 @@ func (r *Queryer) QueryMissingAuthPrevEvents( } for _, prevEventID := range request.PrevEventIDs { - if nids, err := r.DB.EventNIDs(ctx, []string{prevEventID}); err != nil || len(nids) == 0 { + if state, err := r.DB.StateAtEventIDs(ctx, []string{prevEventID}); err != nil || len(state) == 0 { response.MissingPrevEventIDs = append(response.MissingPrevEventIDs, prevEventID) } } |