changelog

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

View File

@ -1,3 +1,7 @@
[0.2.9]
- create first chat with member by id = 1 if empty smembers chats_by_author/author_id
[0.2.8]
- sse removed to presence service
- bugfixes

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: