Converse upstream WIP:
* Fix anonymous mode
This commit is contained in:
parent
1226162b50
commit
cbcf51d1eb
@ -17,11 +17,11 @@ export const livechatViewerModePlugin = {
|
||||
livechat_external_auth_reconnect_mode: undefined
|
||||
})
|
||||
|
||||
const originalGetDefaultMUCNickname = _converse.getDefaultMUCNickname
|
||||
const originalGetDefaultMUCNickname = _converse.exports.getDefaultMUCNickname
|
||||
if (!originalGetDefaultMUCNickname) {
|
||||
console.error('[livechatViewerModePlugin] getDefaultMUCNickname is not initialized.')
|
||||
} else {
|
||||
Object.assign(_converse, {
|
||||
Object.assign(_converse.exports, {
|
||||
getDefaultMUCNickname: function (this: any): any {
|
||||
if (!_converse.api.settings.get('livechat_enable_viewer_mode')) {
|
||||
return originalGetDefaultMUCNickname.apply(this, arguments)
|
||||
|
Loading…
Reference in New Issue
Block a user