From 924302aed5df0b0505188ff2fed420256a450db6 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 25 Dec 2017 12:51:03 +0100 Subject: [PATCH] Fix get_dialogs not fetching some dialogs containing service messages --- pyrogram/client/client.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index b252b8d6..e32420dd 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -302,10 +302,6 @@ class Client: continue for message in d.messages: # type: Message - # Only search for Messages - if not isinstance(message, Message): - continue - is_this = peer_id == message.from_id or dialog.peer == message.to_id if is_this: