Merge pull request #15733 from BrentBaccala/lookup-parentmeetingid

This commit is contained in:
Gustavo Trott 2022-11-07 21:16:33 -03:00 committed by GitHub
commit 1c7ccdc24f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,7 @@ import org.bigbluebutton.api.domain.BreakoutRoomsParams;
import org.bigbluebutton.api.domain.LockSettingsParams; import org.bigbluebutton.api.domain.LockSettingsParams;
import org.bigbluebutton.api.domain.Meeting; import org.bigbluebutton.api.domain.Meeting;
import org.bigbluebutton.api.domain.Group; import org.bigbluebutton.api.domain.Group;
import org.bigbluebutton.api.service.ServiceUtils;
import org.bigbluebutton.api.util.ParamsUtil; import org.bigbluebutton.api.util.ParamsUtil;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -640,7 +641,7 @@ public class ParamsProcessorUtil {
String parentMeetingId = ""; String parentMeetingId = "";
if (isBreakout) { if (isBreakout) {
internalMeetingId = params.get(ApiParams.MEETING_ID); internalMeetingId = params.get(ApiParams.MEETING_ID);
parentMeetingId = params.get(ApiParams.PARENT_MEETING_ID); parentMeetingId = ServiceUtils.findMeetingFromMeetingID(params.get(ApiParams.PARENT_MEETING_ID)).getInternalId();
// We rebuild the the external meeting using the has of the parent // We rebuild the the external meeting using the has of the parent
// meeting, the shared timestamp and the sequence number // meeting, the shared timestamp and the sequence number
String timeStamp = StringUtils.substringAfter(internalMeetingId, "-"); String timeStamp = StringUtils.substringAfter(internalMeetingId, "-");