discours-default-dialogue
All checks were successful
deploy / deploy (push) Successful in 1m14s

This commit is contained in:
Untone 2023-12-19 20:43:39 +03:00
parent 9635bb8a7c
commit e81eabd0d0

View File

@ -61,7 +61,7 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0) -> Dict[str, Uni
lock = asyncio.Lock()
if len(cids) == 0:
print(f"[resolvers.load] no chats for user with id={author_id}")
r = await create_chat(None, info, members=[1]) # member with id = 1 is discours
r = await create_chat(None, info, members=[2]) # member with id = 2 is discours
print(f"[resolvers.load] created chat: {r['chat_id']}")
cids.append(r["chat"]["id"])