Merge remote-tracking branch 'origin/chat_and_cache' into websocket
This commit is contained in:
commit
dc567ddd9a
1 changed files with 2 additions and 1 deletions
|
|
@ -124,7 +124,8 @@ class ChatManager:
|
|||
history = self.chat_history.get_history(client_id, filter=False)
|
||||
file_responses = []
|
||||
if history:
|
||||
for msg in history:
|
||||
# Iterate backwards through the history
|
||||
for msg in reversed(history):
|
||||
if isinstance(msg, FileResponse):
|
||||
file_responses.append(msg)
|
||||
if msg.type == "start":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue