mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-06 20:25:52 +03:00
Avoid error when trying to reset deadline for no msgbox entries
Closes #4520.
This commit is contained in:
parent
b09c8c83f7
commit
cfce68e9ad
|
@ -295,6 +295,8 @@ class MessageBox:
|
|||
#
|
||||
# It also updates the next deadline time to reflect the new closest deadline.
|
||||
def reset_deadlines(self, entries, deadline):
|
||||
if not entries:
|
||||
return
|
||||
for entry in entries:
|
||||
if entry not in self.map:
|
||||
raise RuntimeError('Called reset_deadline on an entry for which we do not have state')
|
||||
|
|
Loading…
Reference in New Issue
Block a user