Skip to content

Commit

Permalink
bump sdk + option for auto_gen_user_id + copyright_conf
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Sep 28, 2024
1 parent c4f263a commit 1789e24
Show file tree
Hide file tree
Showing 21 changed files with 261 additions and 202 deletions.
9 changes: 8 additions & 1 deletion classes/external/mod_plugnmeet_create_room.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,16 @@ public static function create_room($instanceid, $join, $isadmin) {
}

$instance = $DB->get_record('plugnmeet', array('id' => $instanceid), '*', MUST_EXIST);
$config = get_config('mod_plugnmeet');
$roommetadata = json_decode($instance->roommetadata, true);

$config = get_config('mod_plugnmeet');
if (isset($config->copyright_display)) {
$roommetadata["copyright_conf"] = array(
"display" => $config->copyright_display == 1,
"text" => $config->copyright_text,
);
}

if (!$isadmin
&& isset( $roommetadata["room_features"]["moderator_join_first"] )
&& $roommetadata["room_features"]["moderator_join_first"] == 1 ) {
Expand Down
9 changes: 9 additions & 0 deletions helpers/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,15 @@ public static function get_room_features($roommetadata, $mform) {
"selected" => 1,
"type" => "select"
),
"auto_gen_user_id" => array(
"label" => get_string("auto_gen_user_id", "mod_plugnmeet"),
"options" => array(
0 => get_string("no", "mod_plugnmeet"),
1 => get_string("yes", "mod_plugnmeet")
),
"selected" => 0,
"type" => "select"
),
);

$data = [];
Expand Down
2 changes: 1 addition & 1 deletion helpers/libs/plugnmeet-sdk-php/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "plugNmeet PHP SDK",
"type": "library",
"license": "MIT",
"version": "1.5.1",
"version": "1.5.2",
"autoload": {
"psr-4": {
"Mynaparrot\\Plugnmeet\\": "src/"
Expand Down
Loading

0 comments on commit 1789e24

Please sign in to comment.