From 33328a76d41dd6a18b13f22460b81c3eb05b0657 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Mon, 29 Apr 2024 15:50:38 +0200 Subject: [PATCH] Minor JS fix --- CHANGELOG.md | 1 + conversejs/lib/plugins/livechat-mini-muc-head.ts | 2 +- conversejs/lib/plugins/livechat-specific.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bdb403f..31c74c74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Minor changes and fixes * Translation updates: french, croatian, deutsch. +* Minor JS fix. ## 9.0.1 diff --git a/conversejs/lib/plugins/livechat-mini-muc-head.ts b/conversejs/lib/plugins/livechat-mini-muc-head.ts index 5a7b986d..71fb8c15 100644 --- a/conversejs/lib/plugins/livechat-mini-muc-head.ts +++ b/conversejs/lib/plugins/livechat-mini-muc-head.ts @@ -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 diff --git a/conversejs/lib/plugins/livechat-specific.ts b/conversejs/lib/plugins/livechat-specific.ts index d4c7d7eb..ffd7882c 100644 --- a/conversejs/lib/plugins/livechat-specific.ts +++ b/conversejs/lib/plugins/livechat-specific.ts @@ -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')) {