Skip to content

Commit

Permalink
fix(dialogs): check iterator end correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Feb 17, 2022
1 parent 42accec commit 616c36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram/query/dialogs/iter.go
Original file line number Diff line number Diff line change
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 616c36a

Please sign in to comment.