Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
statefb committed Dec 11, 2023
1 parent 9756241 commit 55083f1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions backend/app/usecases/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,6 @@ def prepare_conversation(
create_time=current_time,
)
conversation.message_map[message_id] = new_message

# if (
# chat_input.message.parent_message_id
# and conversation.message_map.get(chat_input.message.parent_message_id)
# is not None
# ):
# conversation.message_map[chat_input.message.parent_message_id].children.append(
# message_id
# )
# else:
# conversation.message_map[parent_id].children.append(message_id) # type: ignore
conversation.message_map[parent_id].children.append(message_id) # type: ignore

return (message_id, conversation)
Expand Down

0 comments on commit 55083f1

Please sign in to comment.