Fix linked chat parsing

There are two distinct ChatFull types using the same
name (but different namespaces), their objects are kept
in chat_full and full_chat.
This commit is contained in:
Dan 2020-07-06 16:07:06 +02:00
parent db7fc68efe
commit 37d823f579

View File

@ -252,7 +252,7 @@ class Chat(Object):
if full_chat.id == c.id:
chat = c
if isinstance(chat_full, types.ChannelFull):
if isinstance(full_chat, types.ChannelFull):
if full_chat.linked_chat_id == c.id:
linked_chat = c