Fix pts initialized as -1 not being considered

This commit is contained in:
Lonami Exo 2018-12-04 21:07:18 +01:00
parent 0b89d9d3f9
commit 424079aa12

View File

@ -133,7 +133,7 @@ class UpdateMethods(UserMethods):
This can also be used to forcibly fetch new updates if there are any. This can also be used to forcibly fetch new updates if there are any.
""" """
state = self.session.get_update_state(0) state = self.session.get_update_state(0)
if not state or not state.pts: if not state or state.pts <= 0:
state = await self(functions.updates.GetStateRequest()) state = await self(functions.updates.GetStateRequest())
self.session.catching_up = True self.session.catching_up = True