diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 8111f0ef09..0971896727 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -229,6 +229,7 @@ ajaxify.widgets = { render: render }; }); }); } + ajaxify.updateTitle = updateTitle; function updateTags() { const metaWhitelist = ['title', 'description', /og:.+/, /article:.+/, 'robots'].map(function (val) { diff --git a/public/src/client/chats.js b/public/src/client/chats.js index 41aaf3d93c..ad9147cb3c 100644 --- a/public/src/client/chats.js +++ b/public/src/client/chats.js @@ -464,6 +464,7 @@ define('forum/chats', [ chatNavWrapper = $('[component="chat/nav-wrapper"]'); html.find('.timeago').timeago(); ajaxify.data = { ...ajaxify.data, ...payload, roomId: roomId }; + ajaxify.updateTitle(ajaxify.data.title); $('body').toggleClass('chat-loaded', !!roomId); mainWrapper.find('[data-bs-toggle="tooltip"]').tooltip(); Chats.setActive(roomId);