mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
fix: #11797, update title on chat switch
This commit is contained in:
@@ -229,6 +229,7 @@ ajaxify.widgets = { render: render };
|
||||
});
|
||||
});
|
||||
}
|
||||
ajaxify.updateTitle = updateTitle;
|
||||
|
||||
function updateTags() {
|
||||
const metaWhitelist = ['title', 'description', /og:.+/, /article:.+/, 'robots'].map(function (val) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user