Private
Public Access
1
0

PerformMessageQuery: Add comment regarding sort assumption

This commit is contained in:
2023-08-08 21:39:43 -07:00
parent 6a0b7ca225
commit f13a809f1e

View File

@@ -154,6 +154,7 @@ func (s *Server) PerformMessageQuery(query *MessagesQuery) []model.Message {
})
// Apply before/after filters
// The following code assumes the messages are sorted by date ascending
if query.BeforeGUID != nil {
beforeGUID := *query.BeforeGUID
for i := range messages {