Fix ConverseJS: livechatWindowTitlePlugin was broken.
This commit is contained in:
parent
75b260bfd5
commit
5296de6a91
@ -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
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user