summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-24 12:37:21 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-24 12:42:05 +0100
commit7521157060f22f4530716b3b8ca94fdbb878a076 (patch)
tree6c2116ae3fee405e2f8ae6bb7a55e85857eb130b /lib
parentcbfa72d9f41f682ffc0a5e7ef17e76eff11321d6 (diff)
Only kick the session we want to remove, not any
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/RoomController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php
index 1ae553c18..b4415d0a1 100644
--- a/lib/Controller/RoomController.php
+++ b/lib/Controller/RoomController.php
@@ -1458,7 +1458,7 @@ class RoomController extends AEnvironmentAwareController {
} catch (ParticipantNotFoundException $e) {
}
- if ($previousSession instanceof Session && $previousSession->getSessionId() !== '0') {
+ if ($previousSession instanceof Session && $previousSession->getSessionId() === $sessionId) {
if ($force === false && $previousSession->getInCall() !== Participant::FLAG_DISCONNECTED) {
// Previous session is/was active in the call, show a warning
return new DataResponse([