workaround-get-author
All checks were successful
deploy / deploy (push) Successful in 1m14s

This commit is contained in:
2023-11-14 18:56:37 +03:00
parent fc0af2d0d8
commit 1d44b2e336
2 changed files with 6 additions and 7 deletions

View File

@@ -73,8 +73,7 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0) -> Dict[str, Uni
member_ids = c["members"].copy()
c["members"] = []
for member_id in member_ids:
a: ChatMember = await get_author(member_id)
if a:
for a in (await get_network(member_id, 1)):
a["online"] = a.get("id") in members_online
c["members"].append(a)
chats.append(c)