Add a method to cancel_all conversations (#1183)

This commit is contained in:
Lonami Exo
2019-06-03 19:41:22 +02:00
parent 690a40be77
commit 4c3e467d25
3 changed files with 24 additions and 13 deletions

View File

@@ -382,8 +382,8 @@ class UpdateMethods(UserMethods):
await self._get_difference(update, channel_id, pts_date)
built = EventBuilderDict(self, update)
if self._conversations:
for conv in self._conversations.values():
for conv_set in self._conversations.values():
for conv in conv_set:
ev = built[events.NewMessage]
if ev:
conv._on_new_message(ev)