Get rid of all remaining async properties

This commit is contained in:
Lonami Exo
2018-06-25 11:03:20 +02:00
parent ae47fd37b0
commit efc9f4c414
5 changed files with 134 additions and 44 deletions

View File

@@ -79,7 +79,7 @@ class Dialog:
self.unread_count = dialog.unread_count
self.unread_mentions_count = dialog.unread_mentions_count
self.draft = Draft(client, dialog.peer, dialog.draft)
self.draft = Draft._from_dialog(client, dialog)
self.is_user = isinstance(self.entity, types.User)
self.is_group = (