mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-11 16:13:10 -06:00
Make Sytest happy again
This commit is contained in:
parent
91c82c5198
commit
8f23d0e69b
|
|
@ -222,6 +222,10 @@ func Search(req *http.Request, device *api.Device, syncDB storage.Database, fts
|
|||
if int(result.Total) > nextBatch+len(results) {
|
||||
nb := strconv.Itoa(len(results) + nextBatch)
|
||||
nextBatchResult = &nb
|
||||
} else if int(result.Total) == nextBatch+len(results) {
|
||||
// Sytest expects a next_batch even if we don't actually have any more results
|
||||
nb := ""
|
||||
nextBatchResult = &nb
|
||||
}
|
||||
|
||||
res := SearchResponse{
|
||||
|
|
|
|||
Loading…
Reference in a new issue