This commit is contained in:
Timothy Jaeryang Baek
2026-06-29 00:46:45 -05:00
parent 62b153749a
commit b854eb09b1
+1 -1
View File
@@ -1155,7 +1155,7 @@ async def search_chats(
# Find a matching message snippet
snippet = ''
messages = chat.chat.get('history', {}).get('messages', {})
messages = (getattr(chat, 'chat', None) or {}).get('history', {}).get('messages', {})
lower_query = query.lower()
for msg_id, msg in messages.items():