Fix delete_dialog on chats

Closes #1727.
This commit is contained in:
Lonami Exo 2021-03-14 11:05:47 +01:00
parent 6f2f8ae69f
commit eba95ebd07

View File

@ -456,7 +456,7 @@ class DialogMethods:
if ty == helpers._EntityType.CHAT and not deactivated:
try:
result = await self(functions.messages.DeleteChatUserRequest(
entity.chat_id, types.InputUserSelf(), revoke=revoke
entity.chat_id, types.InputUserSelf(), revoke_history=revoke
))
except errors.PeerIdInvalidError:
# Happens if we didn't have the deactivated information