Make sending messages feel snappy

This commit is contained in:
Stanko K.R.
2025-08-04 07:24:58 +02:00
parent 13eeb8574d
commit e49c7cb1cb
37 changed files with 700 additions and 157 deletions
+3 -1
View File
@@ -6,7 +6,9 @@ class Command::Ask < Command
end
def execute
Current.user.resume_or_start_conversation(question)
conversation = Conversation.create_or_find_by(user: Current.user)
conversation.ask(question) if question.present?
Command::Result::ShowModal.new(turbo_frame: "conversation", url: conversation_path)
end
end