diff --git a/assets/javascripts/discourse/lib/ai-bot-helper.js b/assets/javascripts/discourse/lib/ai-bot-helper.js index 7c8eb212a..69832586a 100644 --- a/assets/javascripts/discourse/lib/ai-bot-helper.js +++ b/assets/javascripts/discourse/lib/ai-bot-helper.js @@ -25,6 +25,7 @@ export function showShareConversationModal(modal, topicId) { export function composeAiBotMessage(targetBot, composer) { const currentUser = composer.currentUser; + const draftKey = "new_private_message_ai_" + new Date().getTime(); let botUsername = currentUser.ai_enabled_chat_bots.find( (bot) => bot.model_name === targetBot @@ -37,10 +38,9 @@ export function composeAiBotMessage(targetBot, composer) { recipients: botUsername, topicTitle: i18n("discourse_ai.ai_bot.default_pm_prefix"), archetypeId: "private_message", - draftKey: "private_message_ai", + draftKey, hasGroups: false, warningsDisabled: true, - skipDraftCheck: true, }, }); }