Skip to content

Commit

Permalink
fix resume chat
Browse files Browse the repository at this point in the history
  • Loading branch information
willydouhard committed Feb 20, 2024
1 parent 0886ceb commit ed58c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/chainlit/socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def resume_thread(session: WebsocketSession):
user_is_author = author == session.user.identifier

if user_is_author:
metadata = thread["metadata"] or {}
metadata = thread.get("metadata", {})
user_sessions[session.id] = metadata.copy()
if chat_profile := metadata.get("chat_profile"):
session.chat_profile = chat_profile
Expand Down

0 comments on commit ed58c45

Please sign in to comment.