API: Include correct start value in search reponse

This commit is contained in:
Ralph Slooten
2023-05-03 17:20:14 +12:00
parent 60ea473acb
commit 6dca57ba9b

View File

@@ -119,7 +119,7 @@ func Search(w http.ResponseWriter, r *http.Request) {
var res MessagesSummary
res.Start = 0
res.Start = start
res.Messages = messages
res.Count = len(messages)
res.Total = stats.Total