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-11-17 18:21:48 +0300
committerJoas Schilling <coding@schilljs.com>2020-11-26 11:46:46 +0300
commitdf69c33e4b60a9c10e7210c92ec137e0fe37e989 (patch)
tree25e2eede2ec520d852f3b9011945a81146128fd5 /lib/Controller
parent23a778b5457bfc39be44456096cad6d1cb2224bf (diff)
Also check the room token when suggesting if SIP can be enabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/RoomController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php
index 64e1d2387..7afc446ec 100644
--- a/lib/Controller/RoomController.php
+++ b/lib/Controller/RoomController.php
@@ -677,6 +677,7 @@ class RoomController extends AEnvironmentAwareController {
if ($this->getAPIVersion() >= 3) {
$roomData['canEnableSIP'] =
$this->talkConfig->isSIPConfigured()
+ && !preg_match(Room::SIP_INCOMPATIBLE_REGEX, $room->getToken())
&& ($room->getType() === Room::GROUP_CALL || $room->getType() === Room::PUBLIC_CALL)
&& $currentParticipant->hasModeratorPermissions(false)
&& $this->talkConfig->canUserEnableSIP($currentUser);