Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-10-22 12:35:28 +0300
committerJoas Schilling <coding@schilljs.com>2020-10-30 12:38:09 +0300
commit542c3792207c5a70ccdefc80f882b23c660cc9d8 (patch)
treedfb6e8e633c30772e63dd55870f03a13b114c9f9 /lib/Room.php
parentb76b92fb931748326974e95fbfd329812cd42f49 (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.php19
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
*/