Skip to content

Commit e694ae2

Browse files
committed
DEV: Cleanup
1 parent c2b5e81 commit e694ae2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

assets/javascripts/discourse/lib/ai-bot-helper.js

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export async function composeAiBotMessage(
4242
)?.username;
4343
} else if (options.personaUsername) {
4444
botUsername = options.personaUsername;
45+
} else {
46+
botUsername = currentUser.ai_enabled_chat_bots[0].username;
4547
}
4648

4749
const data = {

0 commit comments

Comments
 (0)