Add optional endconf flag for conference moderators (#5245)

* Update index.lua
* Update app_languages.php
* Update app_config.php
* Update conference_room_edit.php
* Update app_config.php
* Update conference_room_edit.php
* Update app_languages.php
* Update index.lua
This commit is contained in:
agree
2020-05-04 22:15:16 -06:00
committed by GitHub
parent 43c431894b
commit 30be1a99a8
4 changed files with 67 additions and 1 deletions
@@ -568,6 +568,7 @@
profile = string.lower(row["profile"]);
max_members = row["max_members"];
wait_mod = row["wait_mod"];
moderator_endconf = row["moderator_endconf"];
moderator_pin = row["moderator_pin"];
participant_pin = row["participant_pin"];
announce_name = row["announce_name"];
@@ -690,11 +691,14 @@
flags = flags .. "|mute";
end
end
if (member_type == "moderator") then
--set as the moderator
flags = flags .. "|moderator";
--when the moderator leaves end the conference
--flags = flags .. "|endconf";
if (moderator_endconf == "true") then
flags = flags .. "|endconf";
end
--set the moderator controls
session:execute("set","conference_controls=moderator");
end