Added parentheses to clarify operation order

This commit is contained in:
kristal 2024-09-05 10:51:07 +03:00 committed by GitHub
parent b3cdaf8355
commit 3e2f7dd2f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -221,7 +221,7 @@ class _MessagesIter(RequestIter):
#
# We also assume the API will always return, at least, one message if
# there is more to fetch.
if not r.messages or not self.reverse and r.messages[0].id <= self.request.limit:
if not r.messages or (not self.reverse and r.messages[0].id <= self.request.limit):
return True
# Get the last message that's not empty (in some rare cases