Wait for sync to complete when running sync explicitly

This commit is contained in:
Tulir Asokan
2018-04-28 22:01:29 +03:00
parent 445d997be8
commit 193dcc714b
3 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ async def sync(evt):
sync_only = None
if not sync_only or sync_only == "chats":
await evt.sender.sync_dialogs()
await evt.sender.sync_dialogs(synchronous_create=True)
if not sync_only or sync_only == "contacts":
await evt.sender.sync_contacts()
if not sync_only or sync_only == "me":