Skip to content

Commit

Permalink
Add meetingKeepEvents to the creation data to fix events
Browse files Browse the repository at this point in the history
As per bigbluebutton/bigbluebutton#11681 and https://github.com/bigbluebutton/bigbluebutton.github.io/pull/239/files it seems that this new option was added to let the client control whether or not the data should be stored. The data needs to be stored if meeting stats are required so it can be sent back from the BBB server
  • Loading branch information
keevan committed Jun 3, 2021
1 parent c1f25bd commit 9843e62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bbb_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,13 +379,17 @@ function bigbluebuttonbn_bbb_view_create_meeting_data(&$bbbsession) {
if ($bbbsession['lockonjoinconfigurable']) {
$data['lockSettingsLockOnJoinConfigurable'] = 'true';
}
// Check global mod settings first, otherwise check activity instance settings
// Check global mod settings first, otherwise check activity instance settings.
if (
\mod_bigbluebuttonbn\locallib\config::get('participant_guest_requires_moderator_approval')
|| $bbbsession['bigbluebuttonbn']->moderatorapproval
) {
$data['guestPolicy'] = 'ASK_MODERATOR';
}
// Ensure meeting events are stored such that the BBB server can push meeting events back once it ends.
if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('meetingevents_enabled')) {
$data['meetingKeepEvents'] = 'true'; // Option added as per PR #11681.
}
return $data;
}

Expand Down

0 comments on commit 9843e62

Please sign in to comment.