From a718ad51e47135d2f315e5ca69b500e725c98bce Mon Sep 17 00:00:00 2001 From: Pedro Beschorner Marin Date: Sat, 29 Jan 2022 14:00:57 -0300 Subject: [PATCH] !chore: drop v2.2 support BREAKING CHANGE: add v2.4 support and remove v2.2 --- README.md | 4 ++-- config/config.json | 2 +- lib/locales.js | 9 +-------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index cb01f99..c88bd84 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,9 @@ BIGBLUEBOT_HOST=https://your.bigbluebutton.server ``` BIGBLUEBOT_SECRET=yourbigbluebuttonsecret ``` -- your BigBlueButton server running version (currently 2.2 or 2.3) +- your BigBlueButton server running version (currently 2.3 or 2.4) ``` -BIGBLUEBOT_VERSION=2.2 +BIGBLUEBOT_VERSION=2.4 ``` - [optional] room name or meetingID ``` diff --git a/config/config.json b/config/config.json index ed4d0ed..974fe54 100644 --- a/config/config.json +++ b/config/config.json @@ -1,7 +1,7 @@ { "url": { "host": null, - "version": "2.2", + "version": "2.4", "basename": "html5client", "user": { "param": "username" diff --git a/lib/locales.js b/lib/locales.js index 7dba985..81fad2e 100644 --- a/lib/locales.js +++ b/lib/locales.js @@ -74,15 +74,8 @@ module.exports = { await fetchLocale(client).then(async response => { const version = api.getVersion(options); switch (version) { - case '2.2': - const { messages } = response.data; - if (messages) { - locale = messages; - } else { - logger.error(`Missing locale messages`); - } - break; case '2.3': + case '2.4': const { normalizedLocale, regionDefaultLocale,