diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2023-01-31 04:43:12 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2023-01-31 05:02:12 +0100 |
commit | a46fa7eb8b709512a737b5dc341c3841aa3c0ff1 (patch) | |
tree | 36b7518880e549d47c8c044d03134cac1e14574f /lib | |
parent | afde0e0d3a0b21eff34a884901c86047828f943f (diff) |
Clean breakout room state after stopping them
When the breakout rooms are stopped the lobby is enabled again in them.
However, as it was first enabled and then the breakout rooms were
stopped if the participants updated the room data before switching back
to the parent room the lobby was briefly shown. To prevent that the
breakout rooms should be stopped and, then, the lobby should be enabled
again.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/BreakoutRoomService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/BreakoutRoomService.php b/lib/Service/BreakoutRoomService.php index 9872ecdd4..e2180124a 100644 --- a/lib/Service/BreakoutRoomService.php +++ b/lib/Service/BreakoutRoomService.php @@ -432,6 +432,8 @@ class BreakoutRoomService { throw new \InvalidArgumentException('mode'); } + $this->roomService->setBreakoutRoomStatus($parent, BreakoutRoom::STATUS_STOPPED); + $breakoutRooms = $this->manager->getMultipleRoomsByObject(BreakoutRoom::PARENT_OBJECT_TYPE, $parent->getToken()); foreach ($breakoutRooms as $breakoutRoom) { $this->roomService->setLobby($breakoutRoom, Webinary::LOBBY_NON_MODERATORS, null); @@ -441,8 +443,6 @@ class BreakoutRoomService { } } - $this->roomService->setBreakoutRoomStatus($parent, BreakoutRoom::STATUS_STOPPED); - return $breakoutRooms; } |