mirror of
https://github.com/iyear/tdl
synced 2025-01-08 11:57:55 +08:00
fix(dl): check slice index. closes #474
This commit is contained in:
parent
fe56d67d1a
commit
20128aec02
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user