Skip to content

Commit

Permalink
Merge pull request #13980 from nextcloud/bugfix/noid/dont-force-remov…
Browse files Browse the repository at this point in the history
…e-guests

fix(guests): Don't force remove guests but leave it to the "purge logic"
  • Loading branch information
nickvergessen authored Dec 11, 2024
2 parents 8b25305 + b19d269 commit ac7f14f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/Controller/SignalingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -924,15 +923,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}', [
Expand Down

0 comments on commit ac7f14f

Please sign in to comment.