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