Only kick the session we want to remove, not any

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2023-01-24 12:37:21 +01:00
parent cbfa72d9f4
commit 7521157060
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205

View file

@ -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([