Skip to content

Commit

Permalink
!chore: drop v2.2 support
Browse files Browse the repository at this point in the history
BREAKING CHANGE: add v2.4 support and remove v2.2
  • Loading branch information
pedrobmarin committed Jan 29, 2022
1 parent eba1fb0 commit a718ad5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion config/config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"url": {
"host": null,
"version": "2.2",
"version": "2.4",
"basename": "html5client",
"user": {
"param": "username"
Expand Down
9 changes: 1 addition & 8 deletions lib/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a718ad5

Please sign in to comment.