Skip to content

Commit

Permalink
Merge pull request #698 from tdakkota/fix/check-dialogs-iterator-end
Browse files Browse the repository at this point in the history
fix(dialogs): check iterator end correctly
  • Loading branch information
tdakkota committed Feb 17, 2022
2 parents 4905b2b + 616c36a commit 412013f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram/query/dialogs/iter.go
Expand Up @@ -116,7 +116,7 @@ func (m *Iterator) apply(r tg.MessagesDialogsClass) error {
entities = peer.EntitiesFromResult(dlgs)

m.count = dlgs.Count
m.lastBatch = len(dlgs.Dialogs) < m.limit
m.lastBatch = len(dlgs.Dialogs) == 0
default: // messages.dialogsNotModified#f0e3e596
return errors.Errorf("unexpected type %T", r)
}
Expand Down

0 comments on commit 412013f

Please sign in to comment.