Fix Conversation not allowing getting responses after ID 0

This commit is contained in:
Lonami Exo 2019-04-29 08:53:04 +02:00
parent 599a5ac3ff
commit 1ead9757d3
2 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,7 @@ class Conversation(ChatGetter):
del self._pending_reads[to_remove]
def _get_message_id(self, message):
if message:
if message is not None: # 0 is valid but false-y, check for None
return message if isinstance(message, int) else message.id
elif self._last_outgoing:
return self._last_outgoing

View File

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