This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
assets/javascripts/discourse Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,6 @@ 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 ;
4745 }
4846
4947 const data = {
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ export default class AiConversationsSidebarManager extends Service {
2828 // This method is called when leaving your route
2929 // Only restore main panel if we previously forced ours
3030 document . body . classList . remove ( "has-ai-conversations-sidebar" ) ;
31- const isadminsidebaractive =
31+ const isAdminSidebarActive =
3232 this . sidebarState . currentPanel ?. key === ADMIN_PANEL ;
3333 // only restore main panel if we previously forced our sidebar
3434 // and not if we are in admin sidebar
35- if ( this . sidebarState . isForcingSidebar && ! isadminsidebaractive ) {
35+ if ( this . sidebarState . isForcingSidebar && ! isAdminSidebarActive ) {
3636 this . sidebarState . setPanel ( MAIN_PANEL ) ; // Return to main sidebar panel
3737 this . sidebarState . isForcingSidebar = false ;
3838 }
You can’t perform that action at this time.
0 commit comments