Minor JS fix

This commit is contained in:
John Livingston
2024-04-29 15:50:38 +02:00
parent 29426bba12
commit 33328a76d4
3 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ export const livechatMiniMucHeadPlugin = {
_converse.api.listen.on('getHeadingButtons', (view: any, buttons: any[]) => {
if (view.model.get('type') !== _converse.CHATROOMS_TYPE) {
// only on MUC.
return
return buttons
}
// removing the 'show/hide topic' buttons

View File

@ -11,7 +11,7 @@ export const livechatSpecificsPlugin = {
_converse.api.listen.on('getHeadingButtons', (view: any, buttons: any[]) => {
if (view.model.get('type') !== _converse.CHATROOMS_TYPE) {
// only on MUC.
return
return buttons
}
if (_converse.api.settings.get('livechat_specific_external_authent')) {