fix(dl): check slice index. closes #474

This commit is contained in:
iyear 2024-01-29 21:05:03 +08:00
parent fe56d67d1a
commit 20128aec02

View File

@ -124,7 +124,7 @@ func (i *iter) process(ctx context.Context) (ret bool, skip bool) {
}()
// end of iteration or error occurred
if i.i >= len(i.dialogs) || i.err != nil {
if i.i >= len(i.dialogs) || i.j >= len(i.dialogs[i.i].Messages) || i.err != nil {
return false, false
}