smshandler timestamp handling ifx

This commit is contained in:
Evgeny Zinoviev 2021-03-23 04:21:37 +03:00
parent 7841084147
commit 6e00f70272

View File

@ -162,7 +162,7 @@ class SMSHandler:
messages = self.api.get_sms(10, 1)
for sms in reversed(messages):
ts = sms.timestamp()
if state['last_timestamp'] > ts:
if state['last_timestamp'] >= ts:
continue
if ts > max_ts: