diff --git a/CHANGELOG.md b/CHANGELOG.md index 55ace952..8b258b58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 5.2.3 + +### Fixes + +* Fix ConverseJS: livechatWindowTitlePlugin was broken (window title won't be set to the room name) + ## 5.2.1 ### Fixes diff --git a/conversejs/builtin.ts b/conversejs/builtin.ts index b140e587..f082be58 100644 --- a/conversejs/builtin.ts +++ b/conversejs/builtin.ts @@ -213,7 +213,7 @@ window.initConverse = async function initConverse ({ dependencies: ['converse-muc-views'], overrides: { ChatRoomView: { - renderHeading: function (this: any): any { + requestUpdate: function (this: any): any { console.log('[livechatWindowTitlePlugin] updating the document title.') try { const title = this.model.getDisplayName() @@ -221,9 +221,9 @@ window.initConverse = async function initConverse ({ document.title = title } } catch (err) { - console.error('Failed updating the window title', err) + console.error('[livechatWindowTitlePlugin] Failed updating the window title', err) } - return this.__super__.renderHeading.apply(this, arguments) + return this.__super__.requestUpdate.apply(this) } } }