File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -123,16 +123,15 @@ export default class ChatStateStore implements DispatchListener {
123
123
}
124
124
} ) ;
125
125
126
+ // This should really go in ConversationPanel expect the whole double mounted thing wuth turbolinks breaks it when navigating.
126
127
autorun ( ( ) => {
127
128
if ( this . isChatMounted ) {
128
129
const selectedChannelOrType = this . selectedChannelOrType ;
129
130
const channelName = selectedChannelOrType instanceof Channel
130
131
? selectedChannelOrType . name
131
132
: trans ( `chat.channels.${ selectedChannelOrType ?? 'none' } ` ) ;
132
133
133
- const newTitle = `${ channelName } · ${ trans ( 'page_title.main.chat_controller._' ) } ` ;
134
- document . title = newTitle ; // initial page load resets to document.title.
135
- core . browserTitleWithNotificationCount . title = newTitle ;
134
+ core . browserTitleWithNotificationCount . title = `${ channelName } · ${ trans ( 'page_title.main.chat_controller._' ) } ` ;
136
135
}
137
136
} ) ;
138
137
}
You can’t perform that action at this time.
0 commit comments