This commit is contained in:
Untone 2023-10-13 16:37:42 +03:00
parent 806fb5f6f7
commit 6dbd417a3c

View File

@ -68,16 +68,8 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0):
a = await get_author(member_id)
print(f"[resolvers.load] author with id={member_id}: {a}")
if a:
c["members"].append(
{
"id": a.id,
"slug": a.slug,
"userpic": a.userpic,
"name": a.name,
"lastSeen": a.lastSeen,
"online": a.id in members_online,
}
)
a["online"] = a.id in members_online
c["members"].append(a)
chats.append(c)
return {"chats": chats, "error": None}