diff --git a/lib/Controller/SignalingController.php b/lib/Controller/SignalingController.php index 3a594ba8c05..697c98c6d5d 100644 --- a/lib/Controller/SignalingController.php +++ b/lib/Controller/SignalingController.php @@ -10,7 +10,6 @@ use GuzzleHttp\Exception\ConnectException; use OCA\Talk\Config; -use OCA\Talk\Events\AAttendeeRemovedEvent; use OCA\Talk\Events\BeforeSignalingResponseSentEvent; use OCA\Talk\Exceptions\ForbiddenException; use OCA\Talk\Exceptions\ParticipantNotFoundException; @@ -920,15 +919,7 @@ private function backendRoom(array $roomRequest): DataResponse { $this->sessionService->updateLastPing($participant->getSession(), $this->timeFactory->getTime()); } } elseif ($action === 'leave') { - // Guests are removed completely as they don't reuse attendees, - // but this is only true for guests that joined directly. - // Emails are retained as their PIN needs to remain and stay - // valid. - if ($participant->getAttendee()->getActorType() === Attendee::ACTOR_GUESTS) { - $this->participantService->removeAttendee($room, $participant, AAttendeeRemovedEvent::REASON_LEFT); - } else { - $this->participantService->leaveRoomAsSession($room, $participant); - } + $this->participantService->leaveRoomAsSession($room, $participant); } $this->logger->debug('Room request to "{action}" room {token} by actor {actorType}/{actorId}', [