changelog

This commit is contained in:
2023-10-03 17:18:24 +03:00
parent f0c76a2e7e
commit 852d937040
2 changed files with 5 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0):
members_online = (await redis.execute("SMEMBERS", "authors-online")) or []
chats = []
if len(cids) == 0:
r = await create_chat(None, info, members=[1, int(author_id)])
r = await create_chat(None, info, members=[1]) # member with id = 1 is discours
cids.append(r["chat"]["id"])
with local_session() as session:
for cid in cids: