diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-drawer/thread.js b/plugins/chat/assets/javascripts/discourse/components/chat-drawer/thread.js index 1a230dee760..8dd9f43f785 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-drawer/thread.js +++ b/plugins/chat/assets/javascripts/discourse/components/chat-drawer/thread.js @@ -7,14 +7,14 @@ export default class ChatDrawerThread extends Component { @service chat; @service chatStateManager; @service chatChannelsManager; - @service chatDrawerRouter; + @service chatHistory; get backLink() { const link = { models: this.chat.activeChannel.routeModels, }; - if (this.chatDrawerRouter.previousRoute?.name === "chat.channel.threads") { + if (this.chatHistory.previousRoute?.name === "chat.channel.threads") { link.title = "chat.return_to_threads_list"; link.route = "chat.channel.threads"; } else { diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/thread/header.hbs b/plugins/chat/assets/javascripts/discourse/components/chat/thread/header.hbs index 90571cc7e1e..a4fd62890af 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat/thread/header.hbs +++ b/plugins/chat/assets/javascripts/discourse/components/chat/thread/header.hbs @@ -2,8 +2,9 @@