Fix get_edit not always returning awaitable, bump v1.10.8

This commit is contained in:
Lonami Exo 2019-10-31 10:43:42 +01:00
parent 0a3d164806
commit 6850903d17
2 changed files with 4 additions and 3 deletions

View File

@ -222,12 +222,13 @@ class Conversation(ChatGetter):
default=None
)
future = self._client.loop.create_future()
if earliest_edit and earliest_edit.edit_date.timestamp() > target_date:
self._edit_dates[target_id] = earliest_edit.edit_date.timestamp()
return earliest_edit
future.set_result(earliest_edit)
return future # we should always return something we can await
# Otherwise the next incoming response will be the one to use
future = self._client.loop.create_future()
self._pending_edits[target_id] = future
return self._get_result(future, start_time, timeout, self._pending_edits, target_id)

View File

@ -1,3 +1,3 @@
# Versions should comply with PEP440.
# This line is parsed in setup.py:
__version__ = '1.10.7'
__version__ = '1.10.8'