Fix custom.Dialog passing the wrong instance to custom.Draft

This commit is contained in:
Lonami Exo 2018-06-25 21:24:46 +02:00
parent d65f8ecc0d
commit fc834f60fb

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._from_dialog(client, dialog)
self.draft = Draft._from_dialog(client, self)
self.is_user = isinstance(self.entity, types.User)
self.is_group = (