This commit is contained in:
@@ -34,7 +34,7 @@ async def load_messages(
|
||||
replies = []
|
||||
for m in messages:
|
||||
if m:
|
||||
reply_to = m.get("replyTo")
|
||||
reply_to = m.get("reply_to")
|
||||
if reply_to:
|
||||
reply_to = int(reply_to)
|
||||
if reply_to not in message_ids:
|
||||
@@ -60,7 +60,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=[2]) # member with id = 2 is discours
|
||||
r = await create_chat(None, info, members=[1]) # member with id = 1 is discours
|
||||
print(f"[resolvers.load] created chat: {r['chat_id']}")
|
||||
cids.append(r["chat"]["id"])
|
||||
all_authors: List[ChatMember] = await get_all_authors()
|
||||
|
Reference in New Issue
Block a user