Merge remote-tracking branch 'origin/chat_and_cache' into websocket

This commit is contained in:
anovazzi1 2023-04-25 22:12:38 -03:00
commit a14226b8fa

View file

@ -23,7 +23,8 @@ class ChatHistory(Subject):
"""Add a message to the chat history."""
self.history[client_id].append(message)
self.notify()
if not isinstance(message, FileResponse):
self.notify()
def get_history(self, client_id: str, filter=True) -> List[ChatMessage]:
"""Get the chat history for a client."""