mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2024-10-01 03:35:38 -04:00
client: Use user lazy loading.
This commit is contained in:
parent
94e6058ef4
commit
90a87460e8
@ -135,8 +135,15 @@ class PanClient(AsyncClient):
|
||||
# TODO login
|
||||
pass
|
||||
|
||||
# TODO use user lazy loading here
|
||||
response = await self.sync(30000)
|
||||
response = await self.sync(
|
||||
30000,
|
||||
sync_filter={
|
||||
"room": {
|
||||
"state": {"lazy_load_members": True}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
if response.transport_response.status != 200:
|
||||
await asyncio.sleep(5)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user