inbox-debug-6
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user