inbox-debug-6

This commit is contained in:
2024-01-24 15:00:28 +03:00
parent a83ef022a3
commit cccaf16817
2 changed files with 4 additions and 0 deletions

View File

@@ -115,6 +115,7 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0) -> Dict[str, Uni
@login_required
async def load_messages_by(_, info, by, limit: int = 10, offset: int = 0):
"""load :limit messages of :chat_id with :offset"""
logger.info("load_messages_by")
author_id = info.context["author_id"]
author_chats = await redis.execute("SMEMBERS", f"chats_by_author/{author_id}")
try: