diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-22 12:35:28 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-10-30 12:38:09 +0300 |
commit | 542c3792207c5a70ccdefc80f882b23c660cc9d8 (patch) | |
tree | dfb6e8e633c30772e63dd55870f03a13b114c9f9 /lib/Room.php | |
parent | b76b92fb931748326974e95fbfd329812cd42f49 (diff) |
Further adjustments in the RoomController
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Room.php')
-rw-r--r-- | lib/Room.php | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/Room.php b/lib/Room.php index c4b71f5df..40dc20afb 100644 --- a/lib/Room.php +++ b/lib/Room.php @@ -730,25 +730,6 @@ class Room { return true; } - public function ensureOneToOneRoomIsFilled(): void { - if ($this->getType() !== self::ONE_TO_ONE_CALL) { - return; - } - - $users = json_decode($this->getName(), true); - $participants = $this->getParticipantUserIds(); - $missingUsers = array_diff($users, $participants); - - foreach ($missingUsers as $userId) { - if ($this->manager->isValidParticipant($userId)) { - $this->addUsers([ - 'userId' => $userId, - 'participantType' => Participant::OWNER, - ]); - } - } - } - /** * @param array ...$participants */ |