Minor JS fix
This commit is contained in:
parent
29426bba12
commit
33328a76d4
@ -5,6 +5,7 @@
|
|||||||
### Minor changes and fixes
|
### Minor changes and fixes
|
||||||
|
|
||||||
* Translation updates: french, croatian, deutsch.
|
* Translation updates: french, croatian, deutsch.
|
||||||
|
* Minor JS fix.
|
||||||
|
|
||||||
## 9.0.1
|
## 9.0.1
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ export const livechatMiniMucHeadPlugin = {
|
|||||||
_converse.api.listen.on('getHeadingButtons', (view: any, buttons: any[]) => {
|
_converse.api.listen.on('getHeadingButtons', (view: any, buttons: any[]) => {
|
||||||
if (view.model.get('type') !== _converse.CHATROOMS_TYPE) {
|
if (view.model.get('type') !== _converse.CHATROOMS_TYPE) {
|
||||||
// only on MUC.
|
// only on MUC.
|
||||||
return
|
return buttons
|
||||||
}
|
}
|
||||||
|
|
||||||
// removing the 'show/hide topic' buttons
|
// removing the 'show/hide topic' buttons
|
||||||
|
@ -11,7 +11,7 @@ export const livechatSpecificsPlugin = {
|
|||||||
_converse.api.listen.on('getHeadingButtons', (view: any, buttons: any[]) => {
|
_converse.api.listen.on('getHeadingButtons', (view: any, buttons: any[]) => {
|
||||||
if (view.model.get('type') !== _converse.CHATROOMS_TYPE) {
|
if (view.model.get('type') !== _converse.CHATROOMS_TYPE) {
|
||||||
// only on MUC.
|
// only on MUC.
|
||||||
return
|
return buttons
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_converse.api.settings.get('livechat_specific_external_authent')) {
|
if (_converse.api.settings.get('livechat_specific_external_authent')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user