Fix async for typo. Fixes #448
This commit is contained in:
@@ -317,7 +317,7 @@ class ProvisioningAPI(AuthAPI):
|
|||||||
return web.json_response([{
|
return web.json_response([{
|
||||||
"id": get_peer_id(chat),
|
"id": get_peer_id(chat),
|
||||||
"title": chat.title,
|
"title": chat.title,
|
||||||
} async for chat in user.client.get_dialogs(ignore_migrated=True, archived=False)])
|
} async for chat in user.client.iter_dialogs(ignore_migrated=True, archived=False)])
|
||||||
else:
|
else:
|
||||||
return web.json_response([{
|
return web.json_response([{
|
||||||
"id": get_peer_id(chat.peer),
|
"id": get_peer_id(chat.peer),
|
||||||
|
|||||||
Reference in New Issue
Block a user