feat(chat): improve log message display

This commit is contained in:
Shivering Ocelot committed 2026-09-04 00:34:57 -05:00
1 parent d9204d262c
commit 8e94967a9f
3 files changed
+29 -1

No files matched your search

+3
View File
@@ -72,11 +72,14 @@ class ChatMixin:
messages = await query.order_by("-id").all()
messages.reverse()
# TODO: Stop repetition.
# There's db.Message and chat.Message, also should be combined somehow, or wrap db always.
return [{
"id": message.id,
"time": message.time,
"sender": message.sender,
"kind": message.kind,
"subkind": message.subkind,
"content": message.content,
"threadId": message.thread_id,
} for message in messages]