Add config option to change number of dialogs to handle in startup sync

This commit is contained in:
Tulir Asokan
2019-02-14 01:03:50 +02:00
parent 20dd6f8383
commit 346090f7dc
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ class User(AbstractUser):
async def sync_dialogs(self, synchronous_create: bool = False) -> None:
creators = []
for entity in await self.get_dialogs(limit=30):
for entity in await self.get_dialogs(limit=config["bridge.sync_dialog_limit"] or None):
portal = po.Portal.get_by_entity(entity)
self.portals[portal.tgid_full] = portal
creators.append(