Skip to content

Commit

Permalink
Merge branch 'v2.5.x-release' of github.com:bigbluebutton/bigbluebutt…
Browse files Browse the repository at this point in the history
…on into merge-25-dev
  • Loading branch information
antobinary committed Apr 13, 2022
2 parents 8ab4023 + 6d48e66 commit aaef76c
Show file tree
Hide file tree
Showing 127 changed files with 8,204 additions and 2,404 deletions.
2 changes: 0 additions & 2 deletions akka-bbb-apps/.dockerignore

This file was deleted.

24 changes: 0 additions & 24 deletions akka-bbb-apps/Dockerfile

This file was deleted.

26 changes: 0 additions & 26 deletions akka-bbb-fsesl/Dockerfile

This file was deleted.

13 changes: 0 additions & 13 deletions bbb-common-message/Dockerfile

This file was deleted.

13 changes: 0 additions & 13 deletions bbb-common-web/Dockerfile

This file was deleted.

13 changes: 0 additions & 13 deletions bbb-fsesl-client/Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion bbb-playback.placeholder.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
git clone --branch v3.4.0 --depth 1 https://github.com/bigbluebutton/bbb-playback bbb-playback
git clone --branch v3.4.1 --depth 1 https://github.com/bigbluebutton/bbb-playback bbb-playback
8 changes: 5 additions & 3 deletions bigbluebutton-config/bin/bbb-conf
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,10 @@ fi

if [[ $SECRET ]]; then
need_root
if get_properties_value securitySalt "$BBB_WEB_ETC_CONFIG" > /dev/null ; then
change_var_salt "$BBB_WEB_ETC_CONFIG" securitySalt "$SECRET"

echo "Assigning secret in $BBB_WEB_ETC_CONFIG"
if [ -f "$BBB_WEB_ETC_CONFIG" ] && grep "^securitySalt" "$BBB_WEB_ETC_CONFIG" > /dev/null ; then
change_var_value "$BBB_WEB_ETC_CONFIG" securitySalt "$SECRET"
else
echo "securitySalt=$SECRET" >> "$BBB_WEB_ETC_CONFIG"
fi
Expand Down Expand Up @@ -1612,7 +1614,7 @@ if [ -n "$HOST" ]; then
if [ -f "$BBB_WEB_ETC_CONFIG" ] && grep "bigbluebutton.web.serverURL" "$BBB_WEB_ETC_CONFIG" > /dev/null ; then
change_var_value "$BBB_WEB_ETC_CONFIG" bigbluebutton.web.serverURL "$PROTOCOL://$HOST"
else
echo "bigbluebutton.web.serverURL=$PROTOCOL://$HOST" > "$BBB_WEB_ETC_CONFIG"
echo "bigbluebutton.web.serverURL=$PROTOCOL://$HOST" >> "$BBB_WEB_ETC_CONFIG"
fi


Expand Down
2 changes: 0 additions & 2 deletions bigbluebutton-html5/.dockerignore

This file was deleted.

38 changes: 0 additions & 38 deletions bigbluebutton-html5/Dockerfile

This file was deleted.

24 changes: 0 additions & 24 deletions bigbluebutton-html5/Dockerfile.dev

This file was deleted.

5 changes: 0 additions & 5 deletions bigbluebutton-html5/docker-entrypoint.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,13 @@ export default function addMeeting(meeting) {
const sanitizeTextInChat = original => SanitizeHTML(original, {
allowedTags: ['a', 'b', 'br', 'i', 'img', 'li', 'small', 'span', 'strong', 'u', 'ul'],
allowedAttributes: {
a: ['href', 'name', 'target'],
a: ['href', 'target'],
img: ['src', 'width', 'height'],
},
allowedSchemes: ['https'],
allowedSchemesByTag: {
a: ['https', 'mailto', 'tel']
}
});

const sanitizedWelcomeText = sanitizeTextInChat(welcomeMsg);
Expand All @@ -154,14 +157,18 @@ export default function addMeeting(meeting) {

const insertBlankTarget = (s, i) => `${s.substr(0, i)} target="_blank"${s.substr(i)}`;
const linkWithoutTarget = new RegExp('<a href="(.*?)">', 'g');
linkWithoutTarget.test(welcomeMsg);

if (linkWithoutTarget.lastIndex > 0) {
welcomeMsg = insertBlankTarget(
welcomeMsg,
linkWithoutTarget.lastIndex - 1,
);
}
do {
linkWithoutTarget.test(welcomeMsg);

if (linkWithoutTarget.lastIndex > 0) {
welcomeMsg = insertBlankTarget(
welcomeMsg,
linkWithoutTarget.lastIndex - 1,
);
linkWithoutTarget.lastIndex = linkWithoutTarget.lastIndex - 1;
}
} while (linkWithoutTarget.lastIndex > 0);

newMeeting.welcomeProp.welcomeMsg = welcomeMsg;

Expand Down
7 changes: 6 additions & 1 deletion bigbluebutton-html5/imports/ui/components/app/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ class App extends Component {
isRTL,
hidePresentation,
autoSwapLayout,
shouldShowScreenshare,
shouldShowExternalVideo,
} = this.props;
const { browserName } = browserInfo;
const { osName } = deviceInfo;
Expand All @@ -167,9 +169,12 @@ class App extends Component {
value: isRTL,
});

const presentationOpen = !(autoSwapLayout || hidePresentation)
|| shouldShowExternalVideo || shouldShowScreenshare;

layoutContextDispatch({
type: ACTIONS.SET_PRESENTATION_IS_OPEN,
value: !(autoSwapLayout || hidePresentation),
value: presentationOpen,
});

Modal.setAppElement('#app');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const Meta = styled.div`
flex: 1;
flex-flow: row;
line-height: 1.35;
align-items: baseline;
`;

const Name = styled.div`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ color: ${colorGray};
bottom: 0;
box-sizing: border-box;
display: flex;
flex-direction: column;
overflow-x: hidden;
overflow-wrap: break-word;
word-break: break-all;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,23 @@ class PresentationUploader extends Component {
}
});

if (!_.isEqual(prevProps.presentations, propPresentations) || presentations.length === 0) {
this.setState({
presentations: Object.values({
...presentations,
...propPresentations,
}),
});
}
const presState = Object.values({
...propPresentations,
...presentations,
});
const presStateMapped = presState.map((presentation) => {
propPresentations.forEach((propPres) => {
if (propPres.id == presentation.id){
presentation.isCurrent = propPres.isCurrent;
}
})
return presentation;
})

this.setState({
presentations: presStateMapped,
})

}

if (presentations.length > 0) {
Expand Down Expand Up @@ -857,7 +866,6 @@ class PresentationUploader extends Component {
keyValue={item.id}
onChange={() => this.handleCurrentChange(item.id)}
disabled={disableActions}
animations={animations}
/>
</Styled.ItemAction>
{isRemovable ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Poll from '/imports/api/polls/';
import { makeCall } from '/imports/ui/services/api';
import logger from '/imports/startup/client/logger';
import _ from 'lodash';
import { Random } from 'meteor/random'

const CONVERSION_TIMEOUT = 300000;
const TOKEN_TIMEOUT = 5000;
Expand Down Expand Up @@ -155,7 +156,6 @@ const requestPresentationUploadToken = (
});

const uploadAndConvertPresentation = (
tmpPresId,
file,
downloadable,
podId,
Expand All @@ -165,9 +165,9 @@ const uploadAndConvertPresentation = (
onProgress,
onConversion,
) => {
const tmpPresId = _.uniqueId(Random.id(20))

const data = new FormData();
data.append('presentation_name', file.name);
data.append('Filename', file.name);
data.append('fileUpload', file);
data.append('conference', meetingId);
data.append('room', meetingId);
Expand Down Expand Up @@ -209,7 +209,7 @@ const uploadAndConvertPresentations = (
podId,
uploadEndpoint,
) => Promise.all(presentationsToUpload.map((p) => uploadAndConvertPresentation(
p.id, p.file, p.isDownloadable, podId, meetingId, uploadEndpoint,
p.file, p.isDownloadable, podId, meetingId, uploadEndpoint,
p.onUpload, p.onProgress, p.onConversion,
)));

Expand Down
Loading

0 comments on commit aaef76c

Please sign in to comment.